Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent layout shifts in reactions modal (#270)
### 🎯 Goal We got reports of layout shifts when opening the reactions modal. This PR fixes them. ### 🛠 Implementation details There were two reasons for the layout shifts: 1. Mismatch between fallback emoji size and sprite emoji size. Fixed by providing an ability to customize sprite emoji size using a CSS variable, and setting sprite emoji size to equal font size. 2. A quick flash of the loading state inside the modal. Fixed by setting minimum height for the modal, so that in most cases it will have the same height during and after loading. ### 🎨 UI Changes https://github.com/GetStream/stream-chat-css/assets/975978/fdff3785-6674-4cf2-a1f3-678bfb319a09
- Loading branch information