mirror of
https://github.com/smittix/intercept.git
synced 2026-07-27 18:18:10 -07:00
Fix ADS-B dashboard mobile layout - proper flex/grid handling
This commit is contained in:
@@ -448,15 +448,31 @@ body {
|
|||||||
|
|
||||||
/* Main display container (map + radar scope) */
|
/* Main display container (map + radar scope) */
|
||||||
.main-display {
|
.main-display {
|
||||||
grid-column: 2;
|
|
||||||
grid-row: 1;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
flex: 1;
|
||||||
|
min-height: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.main-display {
|
||||||
|
grid-column: 1;
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.main-display {
|
||||||
|
grid-column: 2;
|
||||||
|
grid-row: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.display-container {
|
.display-container {
|
||||||
position: relative;
|
position: absolute;
|
||||||
width: 100%;
|
top: 0;
|
||||||
height: 100%;
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#radarMap {
|
#radarMap {
|
||||||
@@ -1044,10 +1060,8 @@ body {
|
|||||||
|
|
||||||
/* ============== MOBILE FIXES ============== */
|
/* ============== MOBILE FIXES ============== */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
/* Dashboard should be scrollable, not fixed height */
|
/* Dashboard - allow scrolling */
|
||||||
.dashboard {
|
.dashboard {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
height: auto;
|
height: auto;
|
||||||
min-height: calc(100dvh - 60px);
|
min-height: calc(100dvh - 60px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -1055,47 +1069,17 @@ body {
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main display needs explicit height on mobile - reset grid properties */
|
/* Main display - explicit height for map */
|
||||||
.main-display {
|
.main-display {
|
||||||
grid-column: auto;
|
flex: none;
|
||||||
grid-row: auto;
|
|
||||||
width: 100%;
|
|
||||||
height: 50vh;
|
height: 50vh;
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
flex-shrink: 0;
|
|
||||||
order: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Map container needs full dimensions */
|
/* Sidebar - stack below map */
|
||||||
.display-container {
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#radarMap {
|
|
||||||
height: 100% !important;
|
|
||||||
width: 100% !important;
|
|
||||||
min-height: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#radarScope {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#radarCanvas {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sidebar should not be height restricted */
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
grid-column: auto;
|
|
||||||
grid-row: auto;
|
|
||||||
max-height: none;
|
max-height: none;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
order: 2;
|
|
||||||
border-left: none;
|
|
||||||
border-top: 1px solid rgba(74, 158, 255, 0.2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide ACARS sidebar on mobile */
|
/* Hide ACARS sidebar on mobile */
|
||||||
|
|||||||
Reference in New Issue
Block a user