进一步优化移动端显示
This commit is contained in:
@@ -130,6 +130,7 @@ body {
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
overflow-x: hidden;
|
||||
position: relative;
|
||||
}
|
||||
@@ -197,6 +198,7 @@ body {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
|
||||
/* ---- Header ---- */
|
||||
@@ -1451,6 +1453,9 @@ input:checked+.slider:before {
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1471,6 +1476,7 @@ input:checked+.slider:before {
|
||||
width: 90%;
|
||||
max-width: 720px;
|
||||
max-height: 80vh;
|
||||
max-height: 80dvh;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-xl);
|
||||
@@ -1587,6 +1593,7 @@ input:checked+.slider:before {
|
||||
padding: 24px;
|
||||
overflow-y: auto;
|
||||
max-height: calc(80vh - 80px);
|
||||
max-height: calc(80dvh - 80px);
|
||||
}
|
||||
|
||||
/* ---- Add Source Form ---- */
|
||||
@@ -2158,6 +2165,7 @@ input:checked+.slider:before {
|
||||
width: 96%;
|
||||
max-width: none;
|
||||
max-height: 90vh;
|
||||
max-height: 90dvh;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
@@ -2195,16 +2203,19 @@ input:checked+.slider:before {
|
||||
.modal-body {
|
||||
padding: 16px 14px;
|
||||
max-height: calc(90vh - 70px);
|
||||
max-height: calc(90dvh - 70px);
|
||||
}
|
||||
|
||||
/* -- Server Detail Modal -- */
|
||||
#serverDetailModal .modal {
|
||||
width: 98%;
|
||||
max-height: 92vh;
|
||||
max-height: 92dvh;
|
||||
}
|
||||
|
||||
#serverDetailModal .modal-body {
|
||||
max-height: calc(92vh - 60px);
|
||||
max-height: calc(92dvh - 60px);
|
||||
}
|
||||
|
||||
.detail-metrics-list {
|
||||
@@ -2383,11 +2394,13 @@ input:checked+.slider:before {
|
||||
left: 0;
|
||||
width: 100vw !important;
|
||||
height: 100vh !important;
|
||||
height: 100dvh !important;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.globe-card.expanded .globe-body {
|
||||
height: calc(100vh - 110px) !important;
|
||||
height: calc(100dvh - 110px) !important;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
@@ -2482,16 +2495,20 @@ input:checked+.slider:before {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
height: 100vh !important;
|
||||
height: 100dvh !important;
|
||||
max-height: 100vh !important;
|
||||
max-height: 100dvh !important;
|
||||
border-radius: 0 !important;
|
||||
margin: 0 !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
transform: none !important;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
#serverDetailModal .modal-body {
|
||||
max-height: calc(100vh - 60px) !important;
|
||||
max-height: calc(100dvh - 60px) !important;
|
||||
}
|
||||
|
||||
/* Metric titles no wrap (as requested) */
|
||||
@@ -2507,12 +2524,16 @@ input:checked+.slider:before {
|
||||
.modal {
|
||||
width: 100%;
|
||||
max-height: 100vh;
|
||||
max-height: 100dvh;
|
||||
border-radius: 0;
|
||||
height: 100vh;
|
||||
height: 100dvh;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
max-height: calc(100vh - 60px);
|
||||
max-height: calc(100dvh - 60px);
|
||||
}
|
||||
|
||||
/* -- Latency route items on small mobile -- */
|
||||
|
||||
Reference in New Issue
Block a user