Skip to content

Make message spacing in message list configurable #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

anh-ngquang
Copy link
Contributor

@anh-ngquang anh-ngquang commented May 14, 2025

🔗 Issue Links

N/A

🎯 Goal

Make following spacings configurable:

  • Spacing between messages in message list
  • Spacing between messages in a message group

🛠 Implementation

Create new params for MessageListConfig to configure these spacings and use them in MessageContainerView.

🎨 Showcase

Add relevant screenshots and/or videos/gifs to easily see what this PR changes, if applicable.

Default spacings Configured spacings
Simulator Screenshot - iPhone 16 - 2025-05-14 at 14 45 37 Simulator Screenshot - iPhone 16 - 2025-05-14 at 14 44 54

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Documentation has been updated in the docs-content repo

@anh-ngquang anh-ngquang requested a review from a team as a code owner May 14, 2025 08:05
Comment on lines 110 to 111
public let messageListItemSpacing: CGFloat
public let messageGroupItemSpacing: CGFloat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please do some minor changes. Since we already have MessagePaddings struct then please add these values to there:

  • groupBottom
  • singleBottom

Could you please CHANGELOG entry as well following the format we have there. Would go under Added section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review @laevandus . I've updated the code to address your comment above. Please help me check again.

Copy link
Contributor

@laevandus laevandus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thank you for your contribution. I'll merge it now.

@laevandus laevandus merged commit 8f0ac18 into GetStream:develop May 20, 2025
5 of 9 checks passed
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.

2 participants