Fix #146: untitled paste ID fallback renders as plain text like titled pastes #148

Merged
fen merged 1 commits from fix-146-id-fallback-plain into dev 2026-09-10 04:07:04 +00:00
Collaborator

Fixes #146

  • Untitled pastes in the PASTE column of the history list rendered their ID fallback with the .slug chip styling (mono font, background pill, padding). Added a paste-name modifier that strips chip styling so the fallback is plain var(--fg) text identical to a titled paste; URL and ID column chips unchanged. Applied to both /history and /mine.

Rendered proof (headless chromium, computed styles on a live build with one titled + one untitled paste):

  • untitled row: slug paste-name, background rgba(0,0,0,0), color rgb(242,237,248) (var(--fg)), font -apple-system — identical to titled row
  • ID column still id-link chip; screenshot at /tmp/pal146_history_fixed.png
  • go vet + go test pass
Fixes #146 - Untitled pastes in the PASTE column of the history list rendered their ID fallback with the `.slug` chip styling (mono font, background pill, padding). Added a `paste-name` modifier that strips chip styling so the fallback is plain `var(--fg)` text identical to a titled paste; URL and ID column chips unchanged. Applied to both `/history` and `/mine`. Rendered proof (headless chromium, computed styles on a live build with one titled + one untitled paste): - untitled row: `slug paste-name`, background `rgba(0,0,0,0)`, color `rgb(242,237,248)` (var(--fg)), font `-apple-system` — identical to titled row - ID column still `id-link` chip; screenshot at /tmp/pal146_history_fixed.png - go vet + go test pass
fen added 1 commit 2026-09-10 03:57:11 +00:00
Fix #146: render untitled paste ID fallback as plain text like titled pastes
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 26s
7dc70d62f6
The PASTE column fallback for untitled pastes used the .slug class, which
renders as a monospace chip with a background pill. Give it a dedicated
paste-name modifier that strips the chip styling (background, padding,
radius, mono font) so the fallback looks identical to a titled paste
(var(--fg) plain text). The dedicated ID column and URL column chips keep
their existing styling. Applied to both /history and /mine tables.
fen merged commit 4d50e644b9 into dev 2026-09-10 04:07:04 +00:00
Sign in to join this conversation.