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

Use aspect-ratio property to enforce aspect ratio #45

Merged
merged 2 commits into from
Jan 21, 2025
Merged

Conversation

syeopite
Copy link
Owner

Replaces the padding-bottom absolute positioned CSS trick with the
aspect-ratio property.

aspect-ratio also helps prevents cls so this should just be a drop-in replacement assuming that photosets looks exactly the same

Replaces the padding-bottom absolute positioned CSS trick with the
aspect-ratio property.

As an added benefit this property also prevents cls when images are
loaded.
@syeopite syeopite merged commit 389fb4d into master Jan 21, 2025
3 checks passed
@syeopite syeopite deleted the use-aspect-ratio branch January 21, 2025 20:21
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.

1 participant