Fix #210: saved pastes ID column / delete button overlap #211

Merged
fen merged 1 commits from fix-210 into dev 2026-09-10 18:00:42 +00:00
Collaborator

Problem

In the saved pastes menu (/mine), the delete button column overlapped the ID column at narrower widths (e.g. 1019px, see issue screenshot).

Cause

Each row rendered by mine.js outputs 7 cells (Paste, Language, Size, Created, URL, ID, delete button), but the table's <colgroup> and <thead> only declared 6 columns. Under table-layout: fixed the unassigned 7th cell collapsed into the ID column.

Fix

  • internal/web/templates/mine.html: add a 7th <col class="col-del"> to the colgroup and an empty <th aria-label="Delete"> header.
  • internal/web/static/app.css: add .col-del { width: 64px; } sized to the existing .btn-icon delete button.

Verification

  • go build ./... and go test ./... pass.
  • Served /mine locally on a spare port and confirmed the template emits 7 declared columns.

Fixes #210

## Problem In the saved pastes menu (/mine), the delete button column overlapped the ID column at narrower widths (e.g. 1019px, see issue screenshot). ## Cause Each row rendered by `mine.js` outputs 7 cells (Paste, Language, Size, Created, URL, ID, delete button), but the table's `<colgroup>` and `<thead>` only declared 6 columns. Under `table-layout: fixed` the unassigned 7th cell collapsed into the ID column. ## Fix - `internal/web/templates/mine.html`: add a 7th `<col class="col-del">` to the colgroup and an empty `<th aria-label="Delete">` header. - `internal/web/static/app.css`: add `.col-del { width: 64px; }` sized to the existing `.btn-icon` delete button. ## Verification - `go build ./...` and `go test ./...` pass. - Served `/mine` locally on a spare port and confirmed the template emits 7 declared columns. Fixes #210
fen added 1 commit 2026-09-10 17:56:21 +00:00
Fix #210: declare missing delete-button column in saved pastes table
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 45s
8636a23f49
/mine rows render 7 cells (ID + delete button) but the colgroup and
thead only declared 6 columns, so under table-layout:fixed the delete
button cell overlapped the ID column at narrower widths. Add a
col-del column + empty header th to match the row cells.
fen merged commit a49127eff2 into dev 2026-09-10 18:00:42 +00:00
Sign in to join this conversation.