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

zooming no longer screws with height tiny elements #98

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

chriscauley
Copy link
Collaborator

The reason this was a problem was that the images were less than 1 line height (20px). If an image is inline or inline-block then it will try to align itself with the text. If the image is smaller than 1 line height the parent container will be 1 line height and the image will be centered. When you zoom out the size of that 20px changes, but the percentage measurements don't. I fixed it by setting the line height to zero on every line that was affected and adjusting the top % accordingly.

I also took the initiative of generalizing the css a bit. I don't know if that was appropriate. I can undo that or do more of it in the future. I'd love to replace this with a javascript widget rather than several thousand lines of copy/pasted html and css.

@theonlydude theonlydude merged commit 36091c8 into theonlydude:master Sep 12, 2022
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