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
Maintain aspect ratio with height: auto; #5254
Conversation
I see no difference at all in those images. And if I have to do a rapid On Wed, Aug 17, 2016, 12:55 PM Patrick Marsceill notifications@github.com
|
LGTM. Thanks for this @pmarsceill! Nice catch. Looks like before on mobile the Jekyll logo would be stretched to about twice its height? If there's no downside to merging, I think it would add a nice level of polish to the site on mobile (and would make a great first contribution to Jekyll, hopefully first of many!) Thanks again @pmarsceill. 😄 |
It's not very noticeable in a single screenshot delivered via email. That's fair. However, very few users of Jekyll's site will be consuming it via a single screenshot delivered by email. For the rest of the users out there using resizable browsers, we should be making sure the logo isn't horizontally compressed when it doesn't need to be, especially when the fix is a one-liner with no consequences. |
I'm still 👎, you are putting a bandaid on a single wound when there are 20 around it. If the image ends up expanding in any way because a browser is terrible at it's job, it's the headers fault for resizing itself and the fault of whoever designed the CSS, not the images fault which shouldn't need an explicit auto since modern browsers should implicitly set it... |
FWIW it is pretty standard to do fluid images this way: |
You are comparing flexible UI's to a static UI and expecting the same tricks to stand up under scrutiny. To the on-looker sure it works, it solves the problem, but it doesn't solve the actual problem, which is the header is shifting in some way it shouldn't, that is the real problem that is causing this. |
I will concede though, I am unwiling to fix the problem myself, my backlog is already huge. So I guess I better either yeah you know the saying, it's LGTM. |
@jekyllbot: merge +site |
Thanks. I'm More than willing to have a look at this. |
This PR fixes the Jekyll logo that was stretching when the browser was being resized:
Before (gross)
After (better)