Skip to content
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

set max-width of post images to 100% #1059

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

koddsson
Copy link
Contributor

I was just checking out the new blog post on my phone and it looked a bit off. Turns out that the images have a set width that exceeds the viewport on smaller devices, not quite sure why but maybe this was a good "magic variable" at some point which worked well on larger viewports?

I changed the width property to 100% to make sure that the image doesn't overflow it's container and then will never overflow beyond the text in the wrapped container.

before after
before after

(Screenshots on emulated iPhone 14 Pro Max in the Chrome DevTools)

@MikeMcQuaid
Copy link
Member

Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @koddsson!

@MikeMcQuaid MikeMcQuaid merged commit b06a36d into Homebrew:master Jul 30, 2024
3 checks passed
@koddsson koddsson deleted the fix-image-width-on-mobile branch July 30, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants