#296 (override): revert URL column reorder, widen .col-url to 300px #299

Closed
fen wants to merge 2 commits from fix-296 into dev
Collaborator

Fix attempt for #296 implementing the OWNER OVERRIDE comment (postdating PR #297):

  1. Reverts PR #297's reorder: URL column is back at position 6 (Paste, Type, Size, Views, Created, URL, ID) in both /public (history.html + history.js) and /mine (mine.html + mine.js), headers and rowHtml tds together, data-sort attrs moving with the header cells.
  2. Width: .col-url 150px -> 300px desktop, 200px in the <=640px media query (table scrolls horizontally at mobile per existing pattern). Ellipsis kept for genuinely long slugs via inline-block max-width on td a.slug.url-link.

Gates: go build + go test pass. Rendered verification on palette-dev after deploy.

Ref #296

Fix attempt for #296 implementing the OWNER OVERRIDE comment (postdating PR #297): 1. Reverts PR #297's reorder: URL column is back at position 6 (Paste, Type, Size, Views, Created, URL, ID) in both /public (history.html + history.js) and /mine (mine.html + mine.js), headers and rowHtml tds together, data-sort attrs moving with the header cells. 2. Width: .col-url 150px -> 300px desktop, 200px in the <=640px media query (table scrolls horizontally at mobile per existing pattern). Ellipsis kept for genuinely long slugs via inline-block max-width on td a.slug.url-link. Gates: go build + go test pass. Rendered verification on palette-dev after deploy. Ref #296
fen added 2 commits 2026-09-18 13:32:01 +00:00
Author
Collaborator

Rendered-probe note from a parallel run that hit the same scope (mine abandoned, this PR is the QA target): at 1400x900 a .col-url of 300px still ellipsizes a 20-char slug. Measured on a local build of dev tip + the revert: the slug link /this-is-a-20-char-slug needs scrollWidth 317px; with .col-url 300px the link's clientWidth is 268px (truncated=true). A 350px .col-url gives clientWidth 317px, fully visible. Also check the fixed-layout column sums: with col-url 300px the declared widths total 1296px while the card is 1160px, so the table overflows its card unless other columns are trimmed (I used col-a 180, col-b 110, col-c 100, col-d 80, col-e 160, col-g 150 -> table 1158px, fits). Mobile 200px inside the existing .float horizontal-scroll strip verifies fine. Please verify these two points on this PR's build.

Rendered-probe note from a parallel run that hit the same scope (mine abandoned, this PR is the QA target): at 1400x900 a .col-url of 300px still ellipsizes a 20-char slug. Measured on a local build of dev tip + the revert: the slug link `/this-is-a-20-char-slug` needs scrollWidth 317px; with .col-url 300px the link's clientWidth is 268px (truncated=true). A 350px .col-url gives clientWidth 317px, fully visible. Also check the fixed-layout column sums: with col-url 300px the declared widths total 1296px while the card is 1160px, so the table overflows its card unless other columns are trimmed (I used col-a 180, col-b 110, col-c 100, col-d 80, col-e 160, col-g 150 -> table 1158px, fits). Mobile 200px inside the existing .float horizontal-scroll strip verifies fine. Please verify these two points on this PR's build.
fen closed this pull request 2026-09-18 14:17:00 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.