Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: customize message padding #2202

Merged

Conversation

aharwood9
Copy link
Contributor

馃幆 Goal

Fixes #2158 by allowing a user to customize the horizontal padding for MessageList.

馃洜 Implementation details

  • Remove the default styling in MessageList to use the default in theme.ts. This means the reactions alignment is always in sync rather than having to update both screenPadding and the MessageList.
  • Added a new theme property called messageContainer so we can apply further custom styling beyond just the padding

馃帹 UI Changes

iOS

Proof of working with an extreme 32 horizontal padding -

Simulator Screenshot - iPhone 14 Plus - 2023-07-27 at 10 44 10

Android

Proof of working with an extreme 32 horizontal padding -

Screenshot_1690451040

馃И Testing

鈽戯笍 Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@aharwood9
Copy link
Contributor Author

@santhoshvai - any chance you could review this? I know you guys are very busy with the video library but would be nice to get these released 馃槃 Sorry to pester

@khushal87 khushal87 self-requested a review September 2, 2023 12:36
Copy link
Member

@khushal87 khushal87 left a comment

Choose a reason for hiding this comment

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

Hey, @aharwood9 Thanks for your contribution. The changes look good to me and hence I will be merging it.

@khushal87 khushal87 merged commit b2f3708 into GetStream:develop Sep 2, 2023
2 of 3 checks passed
@github-actions github-actions bot mentioned this pull request Sep 26, 2023
6 tasks
@stream-ci-bot
Copy link
Contributor

馃帀 This PR is included in version 5.18.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to set message padding
3 participants