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
#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 dev2026-09-10 16:18:42 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Root cause: #139 replaced the paste-view created banner's inline
display:blockwith a global.created-banner { display:block }CSS override. That override also matched the empty placeholder banner on /new (base ruledisplay:none), so an empty padded, bordered bar rendered above the action bar on every fresh /new load.Fix: scope the override to
.created-banner.showand add theshowclass 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).