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.
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.
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.