UI: optimize for tall screens (#13508)
This commit is contained in:
parent
1797fcce64
commit
701a130951
1 changed files with 22 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue