-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Explicitly set height on rust logo <img> element in docs #60272
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
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
|
That is already not the case, because the |
I realise we are talking about different things. I thought you meant for scaling up, but it is clear to me that we now break the scaling down scenario. Will take another look. |
I have fixed the scaling down issues. Will you take another look @GuillaumeGomez ? |
I'm not sure it fixes all issues considering you kept the width. If the image has a higher height than width, it'll be an issue as well. :) A bit more requires to be done in here. |
Good input, although the image does not have a higher height than width at the moment, it's I can not spend any more time on this unfortunately. In my opinion, loss of adaptiveness to any aspect ratio (which affects nobody at this time) is a reasonable tradeoff to reduce layout reflow (which affects everyone right now). If you do not agree I think we should close this PR, otherwise - aim to merge it as it is now. |
I'll push on your branch then. I have done this in the past on some personal project so I just need to get the CSS fix but you weren't far from it. |
Feel free to do so. I will be sure to study your solution :) |
Thanks for starting it in any case. I'll try to do it tomorrow. |
The layout of the left side menu in docs reflows when navigating between pages because of missing height on the <img> element of rust logo. Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience.
This reverts commit d79a01b72f4722611cb21b719e6243aad3e7ec3c.
And done! @jakst Does it seem good to you? |
Works well on desktop, but needs adjustment for |
Fixed it for mobile as well. Good catch! |
Looking good to me now! 👌 |
Visiting for triage -- @QuietMisdreavus this looks like it's waiting on a review from you; will you get a chance to make that review happen soon? |
I'll switch reviewers, @QuietMisdreavus is focused on docs.rs for the moment. r? @Manishearth |
@bors r+ |
📌 Commit 9db0fd7 has been approved by |
Explicitly set height on rust logo <img> element in docs The layout of the left side menu in docs reflows when navigating between pages because of missing height on the <img> element of rust logo. Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience.
☀️ Test successful - checks-travis, status-appveyor |
The layout of the left side menu in docs reflows when navigating between pages because of missing height on the
element of rust logo.
Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience.