-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Improve flex-item
overflow
#31404
Improve flex-item
overflow
#31404
Conversation
display: inline; | ||
} | ||
.flex-item-title-inline > * { | ||
display: inline !important; |
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.
It doesn't look good to me.
- It introduces unclear style overriding game again.
- There could be "SVG/emoji" in the labels, so the "flex align item center" was done intentionally, but now I do not know whether "inline+vertical-align" works.
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.
At minimum the children must be display: inline
. Parent actually does not need it. Could maybe check if we can get both elements to naturally display: inline
, e.g. span/a without any CSS that alters display
.
The UI should have been improved by always show assignees on right #33006 |
I'll close as this is outdated. There's still a wrapping bug left on current master where at certain widths, labels in the message flexbox go to a new line all at once instead of them breaking up into multiple lines. |
Previously, labels could not break onto multiple lines when overflowing. Fix this by adding a wrapper element that sets
display: inline
which as far as I'm aware is the onlydisplay
mode that achieves such overflow. Also introduced a breakpoint at 600px where the item goes into column layout.Diff: https://github.com/go-gitea/gitea/pull/31404/files?diff=unified&w=1
Desktop before/after:
Mobile before/after: