Open Ewillian9 opened 1 month ago
If I am understanding the issue correctly, wouldn't it be best to just lock the width to a set real world value rather than view width, pixels, etc? ie like this:
/* Ultrawide modifications */
.overflowPortraitCard,
.overflowSquareCard,
.portraitCard,
.squareCard {
width: 2.2in !important;
}
.overflowBackdropCard,
.overflowSmallBackdropCard {
width: 3.74in !important;
}
Or are you looking for something different?
Edit: I suppose the inch value in CSS isn't the most reliable thing across different devices, so maybe that other method from the issue you linked would be better
Sorry for the delay, what you provided works fin on ultra wide and even standard 1080p 16:9 but indeed doesn't scale anymore for smaller screen like phones/tablets or small laptops
I'm thinking, could it be possible to apply this css on desktop layout only
After thinking about it, you could achieve the functionality using CSS Media Queries. For example:
@media only screen and (max-width: 450px) {
body {
background-color: #F00;
}
}
For Mobile devices: 320px - 480px For Tablets or iPad: 480px - 768px For Laptop or small-size screen: 768px - 1024px For Desktop or large-size screen: 1024px - 1200px For Extra-large size devices: 1200px and more
Other media queries could also work, such as aspect-ratio
, min-aspect-ratio
& max-aspect-ratio
Hi again So not an issue but a suggestion, https://github.com/jellyfin/jellyfin-web/issues/5411 What do you think? Could it be done, maybe in a fancier way?