-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix site logo preview image size with long filenames #50242
Fix site logo preview image size with long filenames #50242
Conversation
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.
Left a small question/suggestion but thanks for doing this!
@@ -139,6 +139,7 @@ | |||
|
|||
img { | |||
width: $grid-unit-50 * 0.5; | |||
min-width: $grid-unit-50 * 0.5; |
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.
We probably need a separate variable for this size. There's $radio-input-size, but it might be worth either creating another, or renaming that one so we have a single size for this. Can even be a new $grid-unit-25. But short of doing that, maybe it's fine to just type out 20px
?
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'll trust your judgement about this and will update the code. If the new designs(or some current ones are using the 20px
value, I can create a new var. Alternatively I can hardcode the 20px
for now.
Size Change: +14 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
@bph This should be included in 15.7 release. |
I just cherry-picked this PR to the release/15.7 branch to get it included in the next release: fe2949b |
* Fix site logo preview image size with long filenames * hardcode width value
Thanks all! 🙌 |
What?
Follow up of: #49992 (comment)
As noted by @ndiego , when a logo has a big filename(results to truncated text) the image icon preview doesn't preserve the
20px
wanted width. This was due to someHStack
css conflict and this PR fixes that.