Fix #209 r2: arrows immediately right of label text, fixed gap
CI / test (pull_request) Successful in 44s
CI / docker (pull_request) Skipped

Absolute right:8px pinned arrows to the column edge; inline span after
the label with margin-left:6px keeps a consistent gap from the text.
This commit is contained in:
fen
2026-09-10 13:14:28 -05:00
parent 6951470bda
commit 7cffd21df9
3 changed files with 15 additions and 16 deletions
+2 -3
View File
@@ -525,10 +525,9 @@ 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; }
th.sortable .sort-ind {
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
display: inline-block; width: 0; height: 0;
/* #209 r2: inline right after the label text with a fixed gap, not pinned to the column edge */
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); }