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