Skip to content

fix(web): fit image previews without scrolling - #1235

Merged
nixuuu merged 1 commit into
devfrom
fix/non-scrollable-screenshot-popover
Nov 24, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/non-scrollable-screenshot-popover

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 24, 2026

Copy link
Copy Markdown
Member

What changed

  • Choose the side of the attachment using the preview's full height, including after scrolling or reopening.
  • Scale the entire thumbnail to the available height without cropping or scrolling. Truncate long filenames in the hover preview and show the full name in the image viewer.
  • Keep the load error and Retry reachable when vertical space is tight.

Fixes: #398

Verification

  • Chromium with the production attachment chip and a local image response. Checked both sides of the anchor, repositioning during scroll, a 340 × 220 viewport, a long filename, keyboard activation, the image viewer, load failure and Retry, and a text attachment.
  • Web typecheck, lint and formatting of changed source files, and git diff --check passed.
  • UI copy is unchanged. The full required checks run in GitHub CI.

@nixuuu
nixuuu enabled auto-merge (squash) November 24, 2026 16:02
Measure the full preview before choosing a side, then scale the thumbnail to the available height.

Fixes: #398
@nixuuu
nixuuu force-pushed the fix/non-scrollable-screenshot-popover branch from 193497a to 63931ed Compare November 24, 2026 16:04
@nixuuu
nixuuu merged commit 740cfbe into dev Nov 24, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/non-scrollable-screenshot-popover branch November 24, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant