From ca59c19fa4132302cb348dd997a7dad1ec8b8d3d Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 10 Sep 2026 17:02:54 -0500 Subject: [PATCH] fix-232: drop attachment-preview img for non-image files (alt text painted duplicate filename); widen chip name max-width to 560px --- internal/web/static/app.css | 2 +- internal/web/templates/paste.html | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 587f47a..e363ede 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -823,7 +823,7 @@ button[type="submit"]:focus-visible, } .attachment-bar .attachment-chip:hover { border-color: var(--accent); } .attachment-bar .attachment-chip .attachment-name { - max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + max-width: 720px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* #221: images scale to fit the viewer box, aspect ratio preserved. */ .attachment-preview { diff --git a/internal/web/templates/paste.html b/internal/web/templates/paste.html index b549f3b..320ca10 100644 --- a/internal/web/templates/paste.html +++ b/internal/web/templates/paste.html @@ -41,17 +41,11 @@
{{if .AttachmentImage}}
{{.Attachment.Filename}}
- - {{.Attachment.Filename}} - {{.Attachment.SizeHuman}} - - {{else}} - - {{.Attachment.Filename}} - {{.Attachment.SizeHuman}} - -
{{.Attachment.Filename}}
{{end}} + + {{.Attachment.Filename}} + {{.Attachment.SizeHuman}} +
{{end}}