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

Improve image positioning configuration #9

Open
sthuber90 opened this issue Dec 22, 2023 · 1 comment
Open

Improve image positioning configuration #9

sthuber90 opened this issue Dec 22, 2023 · 1 comment

Comments

@sthuber90
Copy link
Owner

sthuber90 commented Dec 22, 2023

At the moment an image always fills the screen. It should be configurable to cover the background or fit in the image into the background i.e. portrait pictures in landscape mode should fit in window and leave black bars on each side. Also, panorama pictures never actually fit in the screen, so maybe the aspect ratio can be used to fit the pictures into the screen

@sthuber90
Copy link
Owner Author

Ok, after checking it's already possible to set background-size CSS property to cover or contains. Maybe I need to take the aspect ratio into account and change the background-size property depending on it

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

No branches or pull requests

1 participant