fix: ui overflow issues in Create Group modal [WPB-22420]#20893
fix: ui overflow issues in Create Group modal [WPB-22420]#20893theham3d wants to merge 2 commits intowireapp:devfrom
Conversation
| overflow-y: auto; | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
@theham3d could you fix the EOL issue here please?
|
| line-height: var(--line-height-lg); | ||
| } | ||
|
|
||
| .modal__body { |
There was a problem hiding this comment.
removing wrapperCSS={{overflow: 'unset', overflowY: 'unset'}} is necessary because this was overriding overflow: hidden of the wrapper.
adding modal_body{ overflow: hidden} could be dropped because scrolling is handled inside .group-creation &__list which already has
height: 374px;
overflow-y: auto;
could you explain why we need .modal__body {overflow-y: hidden;} too?
There was a problem hiding this comment.
Thanks @arjita-mitra for the review 👍
Yeah, you’re right. From what I can see in the history, this was mainly introduced because of the FadingScrollbar component. It looks like that changed over time, and when you fixed the issue, this override was left behind.
As for your question, the main reason is that you’re already handling the height limit and overflow in .group-creation__list, like you mentioned. With the current setup, the active style on .modal__body ends up causing a double scroll. In reality, there’s only one scrollable area (the list), but the UI shows two scrollbars, which is just a visual glitch (I've atached a screenshot above). This override fixes that issue.
There was a problem hiding this comment.
I couldn't reproduce the double scrollbar though. Please check the pipeline issues.



Summary
Hi team 👋
I recently came across an open position at Wire, and before applying, I wanted to get a better feel for the product and the codebase. I usually like to explore the app a bit and check out the website, so I did the same here.
While playing around with the app, I noticed two small UI issues in Create Group modal. The first one is in the header, it slightly overflows the modal body and causes a small visual glitch in the corner. The second one happens when we're showing list of users: the modal becomes scrollable, but the current styling creates some inconsistencies, with overlapping overflow areas and slightly awkward scrolling.
What I changed:
wrapperCSSproperty from the modal component (which sets overflow: unset)From what I could tell and checked the history,
wrapperCSSwas originally introduced forFadingScrollbar, but in this case it doesn’t seem to add value, and removing it didn’t introduce any issues.Result:
I’ve attached before/after screenshots for reference in below.
Security Checklist (required)
Accessibility (required)
Standards Acknowledgement (required)
Screenshots or demo (if the user interface changed)
Before:
After:
Notes for reviewers