Force LTR layout for Gantt table in RTL locales (#43678).

Some Gantt features (column resizing, relation lines, progress line) do not work correctly in RTL yet. As a workaround, Gantt is always rendered in LTR even when the current locale is RTL.

Patch by Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@24385 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2026-01-29 07:42:05 +00:00
parent 3a23ddac1f
commit f4eae3be77

View File

@@ -22,6 +22,8 @@
table.gantt-table {
inline-size: 100%;
border-collapse: collapse;
/* Force LTR for Gantt even in RTL locales because column resizing, relation lines, and the progress line don't work in RTL yet. */
direction: ltr;
}
table.gantt-table td {
@@ -248,9 +250,11 @@ td.gantt_watcher_users_column div.issue_watcher_users ul li:not(:last-child)::af
margin-block-start: 1px;
}
/* RTL adjustment (disabled while Gantt is forced LTR). Enable when RTL is supported.
[dir="rtl"] :is(.marker, .task.parent.marker) {
background-position: right;
}
*/
.version-behind-schedule a,
.issue-behind-schedule a {