Skip to content

feat: message view gallery redesign#3396

Merged
isekovanic merged 8 commits intodevelopfrom
feat/message-view-gallery
Feb 13, 2026
Merged

feat: message view gallery redesign#3396
isekovanic merged 8 commits intodevelopfrom
feat/message-view-gallery

Conversation

@khushal87
Copy link
Member

This pull request refactors the Gallery and related components to simplify their props, improve styling consistency, and enhance maintainability. The changes remove several legacy props, centralize and modernize style definitions, and streamline the logic for rendering gallery images and video thumbnails.

Component API and Prop Cleanup:

  • Removed unused or redundant props from Gallery and its subcomponents, including alignment, groupStyles, hasThreadReplies, and threadList, simplifying the component API and reducing complexity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Styling Improvements:

  • Replaced inline and scattered style definitions with a useStyles hook in Gallery.tsx, leveraging theme primitives for consistent spacing, typography, and colors; updated error and overlay styles accordingly. [1] [2] [3]
  • Updated GalleryImage and GalleryImageThumbnail to use a consistent flex: 1 style for images, ensuring proper sizing and layout. [1] [2] [3] [4] [5] [6]
  • Refactored VideoThumbnail to simplify its container styles and use a unified play indicator component, removing redundant view wrappers and legacy styling. [1] [2]

Type and Utility Updates:

  • Updated type definitions to use the new GalleryImageBorderRadius type and simplified border radius handling throughout the gallery components. [1] [2]
  • Adjusted the logic for calculating and applying border radii, now passing fewer props and relying on simplified structures. [1] [2]

Layout and Rendering Logic:

  • Improved the rendering logic for gallery containers and items, using new style hooks and removing unnecessary wrappers, which results in more predictable and maintainable layouts. [1] [2] [3] [4] [5]

These changes collectively modernize the gallery components, reduce technical debt, and pave the way for easier future enhancements.

@Stream-SDK-Bot
Copy link
Contributor

Stream-SDK-Bot commented Feb 12, 2026

SDK Size

title develop branch diff status
js_bundle_size 388 KB 388 KB 0 B 🟢

@isekovanic isekovanic merged commit c69e9a5 into develop Feb 13, 2026
5 of 6 checks passed
@isekovanic isekovanic deleted the feat/message-view-gallery branch February 13, 2026 10:55
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.

3 participants