Skip to content

Bug: Large images overflow message bubbles on mobile #6

Description

@melvincarvalho

Description

Large images in chat messages overflow their message bubbles on mobile devices, breaking the layout.

Screenshot

Image

Current Behavior

  • Images extend beyond the message bubble boundaries
  • Horizontal overflow visible
  • Layout breaks on narrow screens

Expected Behavior

  • Images should be constrained to fit within message bubbles
  • Maintain aspect ratio while scaling down
  • Possibly add tap-to-expand for full size view

Proposed Fix

.message-bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

Or with container constraint:

.message-content img {
  max-width: min(100%, 300px);
  height: auto;
  object-fit: contain;
}

Environment

  • Device: Mobile (various)
  • Viewport: ~400px width
  • Image in screenshot: Large desktop screenshot shared in chat

Additional Considerations

  • Add lightbox/modal for viewing full-size images
  • Consider lazy loading for image-heavy chats
  • Thumbnail generation for large images

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions