From 4175ffef3ef8dc5bd15e6130c85fb688697a9c4a Mon Sep 17 00:00:00 2001 From: poslop Date: Wed, 9 Sep 2026 17:10:24 -0500 Subject: [PATCH] CSS: inline sort arrow with uniform 8px gap (#103), full-pill slug roundness (#104) --- internal/web/static/app.css | 11 +++++------ internal/web/templates/history.html | 14 +++++++------- internal/web/templates/mine.html | 12 ++++++------ 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/internal/web/static/app.css b/internal/web/static/app.css index f853afa..5e00b58 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -215,10 +215,8 @@ th { text-align: left; font-size: 18.9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600; } -/* sort arrow: inline after the label with a consistent fixed gap */ -th.sortable { cursor: pointer; user-select: none; padding-right: 16px; } -th.sortable .sort-ind { position: static; transform: none; margin-left: 8px; margin-top: -2px; } -td { padding: 10px 16px; border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +td { padding: 10px 16px; border-bottom: 1px solid var(--border); overflow: clip; text-overflow: ellipsis; white-space: nowrap; } +td:has(> a.slug), td:has(> .slug) { overflow: visible; } tr:last-child td { border-bottom: none; } tr.row { cursor: pointer; } tr.row:hover td { background: var(--surface-2); } @@ -350,14 +348,15 @@ td a.slug:hover { color: var(--accent); } /* paste name under slug pill in Paste column (#43) */ .paste-sub { font-size: 19.8px; color: var(--muted-fg); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .paste-sub.dim { color: var(--muted); } -td .url-link { font-size: 19.8px; } +td a.slug.url-link { max-width: 100%; display: inline-block; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; } td .id-link { color: var(--muted-fg); text-decoration: none; font-family: var(--font-mono); font-size: 19.8px; } td .id-link:hover { color: var(--accent); } /* sortable column headers (#42) */ th.sortable { cursor: pointer; user-select: none; } th.sortable:hover { color: var(--fg); } -.sort-ind { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: middle; border-left: 5px solid transparent; border-right: 5px solid transparent; } +th.sortable { cursor: pointer; user-select: none; white-space: nowrap; } +.sort-ind { display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: middle; border-left: 5px solid transparent; border-right: 5px solid transparent; } th.sorted.asc .sort-ind { border-bottom: 6px solid var(--accent); } th.sorted.desc .sort-ind { border-top: 6px solid var(--accent); } diff --git a/internal/web/templates/history.html b/internal/web/templates/history.html index b6018d0..23a4b43 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 f5def5b..2253da8 100644 --- a/internal/web/templates/mine.html +++ b/internal/web/templates/mine.html @@ -10,12 +10,12 @@ - - - - - - + + + + + +
PasteLanguageSizeCreatedURLIDPasteLanguageSizeCreatedURLID