From d7fb87f19b687f09dfdb0292b7115d52e462a2c6 Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 10 Sep 2026 11:16:30 -0500 Subject: [PATCH] Fix #170: stray bar at bottom of /new page #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. --- internal/web/static/app.css | 2 +- internal/web/templates/paste.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 85abdbf..1b4d79f 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -786,4 +786,4 @@ button[type="submit"]:focus-visible, .mt18 { margin-top: 18px; } .toggle-inline { display: inline-flex; } .wrap-normal { word-break: normal; overflow-wrap: break-word; } -.created-banner { display: block; } +.created-banner.show { display: block; } diff --git a/internal/web/templates/paste.html b/internal/web/templates/paste.html index 6040efb..fde0251 100644 --- a/internal/web/templates/paste.html +++ b/internal/web/templates/paste.html @@ -35,7 +35,7 @@ {{if .JustCreated}}
-
+
Paste created. Link copied to clipboard: {{.Host}}/{{.ID}} {{if .DeletionToken}} ยท deletion token: {{.DeletionToken}}{{end}}
-- 2.54.0