From 89a9c173cac83d59ddd571f46f07fd06f87e7608 Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 10 Sep 2026 13:15:06 -0500 Subject: [PATCH] Fix #209 r2: sort arrows immediately right of label text --- internal/web/static/app.css | 9 ++++----- internal/web/templates/history.html | 14 +++++++------- internal/web/templates/mine.html | 12 ++++++------ 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 67df380..fe6b124 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -523,12 +523,11 @@ 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 sits IMMEDIATELY right of the label text (inline, small gap), + vertically centered, so the label text aligns with its column contents. */ th.sortable .sort-ind { - position: absolute; right: 8px; top: 50%; transform: translateY(-50%); - display: inline-block; width: 0; height: 0; + display: inline-block; margin-left: 6px; vertical-align: middle; + width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; } th.sorted.asc .sort-ind { border-bottom: 6px solid var(--accent); } diff --git a/internal/web/templates/history.html b/internal/web/templates/history.html index cb6da95..c4bf56f 100644 --- a/internal/web/templates/history.html +++ b/internal/web/templates/history.html @@ -10,13 +10,13 @@ - - - - - - - + + + + + + +
PasteLanguageSizeViewsCreatedURLIDPasteLanguageSizeViewsCreatedURLID
diff --git a/internal/web/templates/mine.html b/internal/web/templates/mine.html index 93d7a80..c7922cb 100644 --- a/internal/web/templates/mine.html +++ b/internal/web/templates/mine.html @@ -10,12 +10,12 @@ - - - - - - + + + + + +
PasteLanguageSizeCreatedURLIDPasteLanguageSizeCreatedURLID