Skip to content

fix(chat): let an attachment fill its bubble - #14

Merged
jsfraz merged 1 commit into
developmentfrom
fix/media-bubble-fills
Nov 17, 2026
Merged

jsfraz merged 1 commit into
developmentfrom
fix/media-bubble-fills

Conversation

@jsfraz

@jsfraz jsfraz commented Nov 17, 2026

Copy link
Copy Markdown
Owner

The blue frame around images/gifs was the conversation bubble: every message was painted with the accent background and 16x10 padding, and the attachment was drawn inside it.

  • Media bubbles (image, gif, album, video, voice, file) now have no background and no padding, and the attachment is clipped to the bubble corners.
  • A reply keeps a surface only for its quote, above the attachment.
  • The multi-select border moved to foregroundDecoration: with the bubble clipped, a border in decoration is painted under the attachment and would be invisible.

Widget test asserts the media bubble's frame has zero padding and no colour.

Verification: flutter analyze --no-fatal-infos clean, flutter test 147/147. Not checked on a device.

Every bubble was painted with the accent background and 16x10 padding, so
an image, gif, album, video, voice note or file sat inside a coloured
frame instead of being the bubble. Media bubbles now drop that padding
and background and clip the attachment to the bubble corners; only a
reply keeps a surface, because its quote still needs one.

The selection border moved to `foregroundDecoration`: with the bubble
clipped, a border in `decoration` is painted under the attachment and
disappears as soon as the media covers it.
@jsfraz
jsfraz merged commit 8ff3fff into development Nov 17, 2026
1 check passed
@jsfraz
jsfraz deleted the fix/media-bubble-fills branch November 17, 2026 22:57
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