mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 15:51:00 +00:00
fix(mobile): grid cards keep their height, a previewed photo its proportions
Cards in the large-screen grid keep their own height instead of stretching to a taller neighbour in their row, which drew a short booking as an empty panel. The file preview beside the grid shows a photo at its own proportions rather than letterboxed in a portrait frame. On a 13" iPad on its side the cloud plans of the native shell stand two by two in their half of the screen, so the whole offer is in view at once.
This commit is contained in:
@@ -1013,6 +1013,17 @@ a.linkbtn {
|
||||
inset-inline: max(32px, calc(25vw - 220px));
|
||||
}
|
||||
}
|
||||
/* With the whole half of a 13" iPad on its side, the plans stand two by two
|
||||
rather than in a column to scroll through. */
|
||||
@media (min-width: 1200px) and (min-height: 600px) and (orientation: landscape) {
|
||||
.shell:has(.plans) {
|
||||
padding-inline: max(32px, calc(25vw - 320px));
|
||||
}
|
||||
.plans {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@media (min-width: 700px) and (min-height: 900px) and (orientation: portrait) {
|
||||
body::before,
|
||||
body::after {
|
||||
|
||||
Reference in New Issue
Block a user