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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace vertical message margins with padding (theme v1) #197

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

MartinCupela
Copy link
Contributor

🎯 Goal

Fix the erratic scroll issue caused by vertical margins around messages in VirtualizedMessageList. Replace all message margins with padding in vertical axis. The goal is to keep the message spacing same:

  1. in grouped and non-grouped setting (virtualized msg list)
  2. between virtualized and non-virtualized message lists
  3. taking into consideration messages with and without attachments
  4. messages in main message list and in thread

Additionally the parent message alignment was fixed for virtualized thread.

🛠 Implementation details

Paddings and margins were combined around the messages and so the margin height was added to padding if it existed.

🎨 Demo

adding_messages_VML.webm

@MartinCupela MartinCupela merged commit 71848b6 into develop Sep 30, 2022
@MartinCupela MartinCupela deleted the fix/remove-vertical-message-margins-theme-v1 branch September 30, 2022 15:44
@MartinCupela MartinCupela mentioned this pull request Sep 30, 2022
github-actions bot pushed a commit that referenced this pull request Sep 30, 2022
## [3.5.2](v3.5.1...v3.5.2) (2022-09-30)

### Bug Fixes

* replace vertical message margins with padding (theme v1) ([#197](#197)) ([71848b6](71848b6))
@szuperaz
Copy link
Collaborator

🎉 This PR is included in version 3.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

MartinCupela added a commit that referenced this pull request Sep 30, 2022
* fix: replace vertical margins with padding in theme v1 messages

* fix: adjust message alignment in thread theme v1
@MartinCupela MartinCupela mentioned this pull request Sep 30, 2022
github-actions bot pushed a commit that referenced this pull request Sep 30, 2022
## [3.1.2](v3.1.1...v3.1.2) (2022-09-30)

### Bug Fixes

* replace vertical message margins with padding (theme v1) ([#197](#197)) ([99dbb31](99dbb31))
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.

None yet

4 participants