-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add org avatar on top of internal repo icon #11895
Conversation
Not a fan of these negative margins. How about adding a wrapper |
Adding another div element will cause repo name to flow down, requiring adding flex on headcrumb container with additional padding for svg element. Also setting 0,0 positions avatar at center of octicon due to styling applied on |
Could just |
Nope. Would prefer not playing too much with flexbox there, also text is not supposed to be centered there. |
The icon hanging outside the parent is a consequence of its size and seen present without a wrapper: I'd say size down the icon a bit so it does not hang outside the parent and then use absolute positioning like I mentioned above with the wrapper. |
The icon must be in multiplies of 16px otherwise FWIW the internal repo icon is squashed anyway because it's native width is 13px |
Actually managed to eliminate need for -5px by applying |
Checked and looks fine to me on all cases, including when avatar is used instead of icon, so should be fine. Pushed changes. |
Must be an issue on your GPU or something. I never have any blurriness issues with non-integer scaled SVG on multiple machines. |
🚀 |
* Add org avatar on top of internal repo icon * add color for arc-green * use wrapper div to avoid negative margins * rename class and move div * move div to icon tmpl * remove unnecessary margin for lock octicon * fix label align together with go-gitea#11891 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Required for #11889 as there is no longer specific icon for internal repos in set.