Fix #170: remove stray bar at bottom of /new page #177

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

Root cause: #139 replaced the paste-view created banner's inline display:block with a global .created-banner { display:block } CSS override. That override also matched the empty placeholder banner on /new (base rule display:none), so an empty padded, bordered bar rendered above the action bar on every fresh /new load.

Fix: scope the override to .created-banner.show and add the show class to the paste-view banner only.

Verified with CDP-rendered checks on a local build: /new banner computes display:none, height 0; paste view with ?created=1 shows the banner (display:block, h~53px).

  • go build ./... and go test ./... pass
  • CSP-safe: no inline styles/scripts reintroduced
Root cause: #139 replaced the paste-view created banner's inline `display:block` with a global `.created-banner { display:block }` CSS override. That override also matched the empty placeholder banner on /new (base rule `display:none`), so an empty padded, bordered bar rendered above the action bar on every fresh /new load. Fix: scope the override to `.created-banner.show` and add the `show` class to the paste-view banner only. Verified with CDP-rendered checks on a local build: /new banner computes display:none, height 0; paste view with ?created=1 shows the banner (display:block, h~53px). - go build ./... and go test ./... pass - CSP-safe: no inline styles/scripts reintroduced
fen added 1 commit 2026-09-10 16:16:51 +00:00
Fix #170: stray bar at bottom of /new page
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 36s
d7fb87f19b
#139 removed inline display:block from paste.html's created banner and
compensated with a global .created-banner { display:block } override.
That override also hit the hidden placeholder banner on /new, whose
base rule is display:none, making an empty padded bar render above the
action bar. Scope the override to .created-banner.show and mark only
the paste-view banner with the show class.
fen merged commit bead90699d into dev 2026-09-10 16:18:42 +00:00
Sign in to join this conversation.