Fix #209 rev: sort arrow inline right of label text, not column edge

This commit is contained in:
fen
2026-09-10 13:33:29 -05:00
parent 13884ca786
commit acb99d4af3
3 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -523,12 +523,12 @@ td .id-link:hover { color: var(--accent); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--fg); }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
/* #209: arrow sits RIGHT of the label, vertically centered, and absolutely
positioned so it never shifts the label text; label aligns with column contents. */
th.sortable { position: relative; padding-right: 24px; }
/* #209 rev: arrow renders inline immediately after the label text (span now
follows the text in the markup), so the label left-aligns with its column
contents and no fixed right padding is needed. */
th.sortable .sort-ind {
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
display: inline-block; width: 0; height: 0;
margin-left: 6px; vertical-align: middle;
border-left: 5px solid transparent; border-right: 5px solid transparent;
}
th.sorted.asc .sort-ind { border-bottom: 6px solid var(--accent); }