-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-23772/MM-23696 Fix channel header popover for existing channels #5258
Conversation
@nevyangelova bullet points are broken on hovering. They should appear on separate lines (as tested on community server)
|
@nevyangelova there is a small (~1px) shift in the pop-up and text with DMs That shift is larger with the new sidebar enabled |
@esethna FYI the Popover is inserted into the top level html without any relation to the channel header, this is why we can't position it relatively and keep having to tweak the CSS. Any new elements that affect the general layout will cause it to be misaligned. I have proposed a definitive fix in https://mattermost.atlassian.net/browse/MM-23621 |
sass/components/_popover.scss
Outdated
|
||
&.chanel-header__popover--dm { | ||
margin-left: 70px; | ||
margin-left: 69.5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, why is the .5px
required? I haven't encountered a situation in webapp that required this before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a combination of a mix between em's and pixels somewhere down the line. I used those values because this is the most correct adjustment for the popover. We can address this in the ticket above as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nevyangelova!
Thank you @nevyangelova
|
Mattermost test server updated with git commit Access here: https://mattermost-webapp-pr-5258.test.mattermost.cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @nevyangelova
Tested, looks good to merge.
- Verified channel description popover on both desktop and browser.
- Verified for users that belong to only one team, using old and new sidebar.
- Verified for users that belong to more then one team, using old and new sidebar.
- Verified popover for channels with guests, popover does not shift due to longer guest label under the channel name
- Verified popover for DMs, no shift - popover displays as expected
- Verified multiple single lines align as the single lines in the header and create a line break for the double line.
Test server destroyed |
Summary
After merging #5159 the popover changed for existing channels. After discussing with @esethna we decided to keep single line breaks on one line, and only consider double breaks. This also addresses CSS fixed introduced in https://mattermost.atlassian.net/browse/MM-23772 the case for which were missed in the previous fixes. Please keep in mind while testing:
I need all the help I could get with testing this as some test cases have been missed and current channels displays were broken.
Ticket link
https://mattermost.atlassian.net/browse/MM-23772
https://mattermost.atlassian.net/browse/MM-23696