UI: optimize for tall screens (#13508)

This commit is contained in:
Michael Geers 2024-04-21 11:31:25 +02:00 • committed by GitHub
parent 1797fcce64
commit 701a130951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,11 @@
<div
class="container container--loadpoint px-0 mb-md-2 d-flex flex-column justify-content-center"
>
<div ref="carousel" class="carousel d-lg-flex flex-wrap">
<div
ref="carousel"
class="carousel d-lg-flex flex-wrap"
:class="`carousel--${loadpoints.length}`"
>
<div
v-for="(loadpoint, index) in loadpoints"
:key="index"
@ -188,7 +192,7 @@ export default {
}
}
/* breakpoint lg */
/* breakpoint lg, 2-col grid */
@media (min-width: 992px) {
.carousel {
display: grid !important;
@ -196,4 +200,20 @@ export default {
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}
}
/* breakpoint lg, tall screen, 2 loadpoints rows */
@media (min-width: 992px) and (min-height: 1450px) {
.carousel--2 {
grid-gap: 4rem;
grid-template-columns: 1fr;
}
}
/* breakpoint lg, taller screen, 3 loadpoints rows */
@media (min-width: 992px) and (min-height: 1900px) {
.carousel--3 {
grid-gap: 4rem;
grid-template-columns: 1fr;
}
}
</style>