Fix spacing in reactions menu header and media gallery preview icons#6351
Fix spacing in reactions menu header and media gallery preview icons#6351
Conversation
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
SDK Size Comparison 📏
|
WalkthroughUpdates to UI component icon sizing and layout spacing in the message menu header composable, along with a replacement of an internal lambda getter in compiled API declarations. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/selectedmessage/MessageMenuHeader.kt (1)
94-99:⚠️ Potential issue | 🟡 MinorAdd explicit spacing before the “show more reactions” button.
ReactionToggleitems getstartpadding, but the trailingStreamButtonhas no sibling gap, so the last reaction and plus button can appear visually cramped.💡 Suggested fix
if (options.size < resolver.supportedReactions.size) { StreamButton( onClick = onShowMoreReactionsSelected, style = StreamButtonStyleDefaults.secondaryOutline, size = StreamButtonSize.Small, - modifier = Modifier.minimumInteractiveComponentSize(), + modifier = Modifier + .padding(start = StreamTokens.spacing3xs) + .minimumInteractiveComponentSize(), ) {🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/selectedmessage/MessageMenuHeader.kt` around lines 94 - 99, In MessageMenuHeader, add explicit start spacing before the trailing StreamButton (the one with onShowMoreReactionsSelected and StreamButtonStyleDefaults.secondaryOutline) so it doesn't sit flush against the last ReactionToggle; update the StreamButton's modifier (or wrap it) to include a start padding/gap consistent with ReactionToggle's start padding (e.g., use Modifier.padding(start = <sameDp>) or Modifier.widthSpacer equivalent) to visually separate the last reaction and the "show more reactions" button.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In
`@stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/selectedmessage/MessageMenuHeader.kt`:
- Around line 94-99: In MessageMenuHeader, add explicit start spacing before the
trailing StreamButton (the one with onShowMoreReactionsSelected and
StreamButtonStyleDefaults.secondaryOutline) so it doesn't sit flush against the
last ReactionToggle; update the StreamButton's modifier (or wrap it) to include
a start padding/gap consistent with ReactionToggle's start padding (e.g., use
Modifier.padding(start = <sameDp>) or Modifier.widthSpacer equivalent) to
visually separate the last reaction and the "show more reactions" button.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 408baed6-9f2d-43d0-bd8a-5caa86aa6a9b
⛔ Files ignored due to path filters (10)
stream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_footer_connected.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_footer_offline.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_footer_sharing_in_progress.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_screen_connected.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_screen_offline.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.attachments.preview_MediaGalleryPreviewScreenTest_media_gallery_screen_with_share_large_file_prompt.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.channel.attachments_ChannelMediaAttachmentsPreviewContentTest_content.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.channel.attachments_ChannelMediaAttachmentsPreviewContentTest_content_in_dark_mode.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.channel.attachments_ChannelMediaAttachmentsPreviewContentTest_preparing_to_share_content.pngis excluded by!**/*.pngstream-chat-android-compose/src/test/snapshots/images/io.getstream.chat.android.compose.ui.channel.attachments_ChannelMediaAttachmentsPreviewContentTest_preparing_to_share_content_in_dark_mode.pngis excluded by!**/*.png
📒 Files selected for processing (3)
stream-chat-android-compose/api/stream-chat-android-compose.apistream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/preview/MediaGalleryPreviewScreen.ktstream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/selectedmessage/MessageMenuHeader.kt
|



Goal
Fix spacing and sizing inconsistencies in the reactions menu header and media gallery preview footer.
Implementation
🎨 UI Changes
Please check the updated snapshots
Testing
Summary by CodeRabbit