Defect #43378
open
Column headers are slightly shifted to the right in tables in list views
Added by Nicholas N 4 days ago.
Updated 1 day ago.
Description
In Redmine 6.0.7, it seems like column headings on issue list pages are mis-aligned ever so slightly.
This is most prevalent with the "Due date" & "Assignee" fields, but appears to be impacting every column.
Please see the screenshot below:

Files
- Status changed from New to Confirmed
The code below fixes the issue:
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 3aef7083a..005b91f89 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -227,7 +227,7 @@ module QueriesHelper
end
content =
link_to(
- sprite_icon(icon, column.caption),
+ (icon.present? ? sprite_icon(icon, column.caption) : column.caption),
{:params => request.query_parameters.deep_merge(sort_param)},
link_options
)
Before:

After:

The attached is a patch with test.
I can confirm that the patch resolves the alignment issue.
- Target version changed from Candidate for next minor release to 6.0.8
Setting the target version to 6.0.8.
- Subject changed from Column Headings Mis-Aligned to Column headers are slightly shifted to the right in issue and spent time lists
- Subject changed from Column headers are slightly shifted to the right in issue and spent time lists to Column headers are slightly shifted to the right in tables in list views
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Also available in: Atom
PDF