fix #221: scale image pastes, clean link pill, raw image view, accurate size #224

Merged
fen merged 1 commits from fix-221 into dev 2026-09-10 19:21:23 +00:00
Collaborator

Ref #221

  • Image pastes scale to fit the viewer box (max-width/max-height, object-fit: contain) — no horizontal overflow at 1400x900 or 375x812
  • No text/code box rendered below the image for image pastes
  • Link pill (attachment chip) positioning cleaned up on the image view
  • /raw for an attachment paste now redirects (302) to the file itself via /f/..., so raw view shows the image raw
  • View details Size (stats pill + summary) uses the attachment blob size instead of the empty text-content length

Verified: go build ./... && go test ./... pass; headless-chromium screenshots of a test image paste at desktop and mobile sizes.

Ref #221 - Image pastes scale to fit the viewer box (max-width/max-height, object-fit: contain) — no horizontal overflow at 1400x900 or 375x812 - No text/code box rendered below the image for image pastes - Link pill (attachment chip) positioning cleaned up on the image view - /raw for an attachment paste now redirects (302) to the file itself via /f/..., so raw view shows the image raw - View details Size (stats pill + summary) uses the attachment blob size instead of the empty text-content length Verified: go build ./... && go test ./... pass; headless-chromium screenshots of a test image paste at desktop and mobile sizes.
fen added 1 commit 2026-09-10 19:19:16 +00:00
fix #221: scale image pastes, drop text box, fix raw view and size
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 45s
98ea7eefa9
- image pastes render the image scaled to fit the viewer box (aspect
  ratio preserved, max-height 70vh), no text/code box below it
- link pill moved under the image as a small inline chip
- /raw serves image attachment bytes as an image instead of empty text
- view details size reports the actual attachment file size
fen force-pushed fix-221 from 07b1c6930a to 98ea7eefa9 2026-09-10 19:19:16 +00:00 Compare
fen merged commit cb58a51bab into dev 2026-09-10 19:21:23 +00:00
Sign in to join this conversation.