-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Align review-item svg octicons #11065
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
Conversation
I see unequal padding in that box, e.g. there's more padding below the text than on top. I think this may be elegantly solved via flexbox instead of more pixel hacks. Put the left- and right-aligned content into a flexbox with |
I don't see any unequal padding after the removal of pixel hack. |
This is due to icon size vs |
That would require significant refactoring of template, as currently both left and right aligned element are just shoved in and it's CSS job to align them (ie. the template doesn't know what should be left or right). |
The text line is just so slightly pushed 1 or 2 px to the top, presumably because of the icons. Proper fix will be flexbox, but I guess this is still a improvement until then. |
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.
as silverwind wrote ... better than nothing
ping lgtm |
Ping LG-TM |
Aligns svg octicons in
review-item
properly.Before:

After:

This also solves the issue where different icon types (image and svg) are not aligned
Before:


After:
