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

Replace height with max-height #378

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

grische
Copy link
Contributor

@grische grische commented Feb 27, 2024

Currently, we are using "max-width: 90%;" as part of .post-content img that forces a maximum width. Together with a hardcoded height, this can lead to distorted images.
When setting max-height instead of height on an image, either of the two max settings will take precedence over the other and scale the image while keeping the aspect ratio fixed.

Currently, we are using "max-width: 90%;" as part of .post-content img
that forces a maximum width. Together with a hardcoded height, this can
lead to distorted images.
When setting max-height instead of height on an image, either of the two
max settings will take precedence over the other and scale the image while
keeping the aspect ratio fixed.
@grische grische requested a review from a team as a code owner February 27, 2024 18:05
@awlx awlx merged commit 2a1b588 into freifunkMUC:main Feb 27, 2024
1 check passed
@grische grische deleted the fix/image-resizing branch February 27, 2024 18:08
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