Fix user popover overflow and fix follow/unfollow button alignment
What does this MR do and why?
Related to #323686 (closed) and #361969 (closed)
Add word-break: break-word;
to content. This will help prevent overflow of content in popovers. Originally I was using overflow-wrap: anywhere
because word-break: break-word;
is deprecated but then I realized Safari doesn't support overflow-wrap: anywhere
so we are forced to use word-break: break-word;
until Safari gets their act together
This MR also fixes a margin issue so that the follow/unfollow button is aligned correctly. (#361969 (closed))
Screenshots or screen recordings
Popover that had overflow
Before | After |
---|---|
Popover that did not have overflow
Expected to look the same
Before | After |
---|---|
How to set up and validate locally
- Enable the
follow_in_user_popover
feature flagbin/rails console
Feature.enable(:follow_in_user_popover)
- Navigate to
/-/profile
- Add long links to your bio
- Navigate to an issue and leave a comment
- Hover over your name
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Hegman