#232: remove duplicate filename under attachment pill, widen pill #234

Merged
fen merged 2 commits from fix-232 into dev 2026-09-10 22:06:25 +00:00
Collaborator

Fixes #232

Non-image attachments rendered an .attachment-preview img whose src fails to load (e.g. CSV served as text/plain), so the browser painted the alt text: the filename duplicated under the download pill. Preview is now rendered only for real image mimes (png/jpeg/gif/webp, matching the AttachmentImage flag). Also widened the chip filename max-width 320px -> 560px so long names show more before ellipsizing.

Verified locally: non-image paste serves no preview div; image paste keeps preview; go build/test pass.

Fixes #232 Non-image attachments rendered an .attachment-preview img whose src fails to load (e.g. CSV served as text/plain), so the browser painted the alt text: the filename duplicated under the download pill. Preview is now rendered only for real image mimes (png/jpeg/gif/webp, matching the AttachmentImage flag). Also widened the chip filename max-width 320px -> 560px so long names show more before ellipsizing. Verified locally: non-image paste serves no preview div; image paste keeps preview; go build/test pass.
fen added 1 commit 2026-09-10 22:02:54 +00:00
fen added 1 commit 2026-09-10 22:05:24 +00:00
fen merged commit 1dd8a3b28a into dev 2026-09-10 22:06:25 +00:00
Sign in to join this conversation.