From f4eae3be77e39e9ac094bf6d4f14dd9b3fd4abb1 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 29 Jan 2026 07:42:05 +0000 Subject: [PATCH] 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 --- app/assets/stylesheets/gantt.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/stylesheets/gantt.css b/app/assets/stylesheets/gantt.css index 011c3995f..d41c3866b 100644 --- a/app/assets/stylesheets/gantt.css +++ b/app/assets/stylesheets/gantt.css @@ -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 {