修复移动布局错误

This commit is contained in:
CN-JS-HuiBai
2026-04-06 16:21:38 +08:00
parent ff1c53ea40
commit 650cc6f1b5

View File

@@ -2212,25 +2212,33 @@ input:checked+.slider:before {
} }
.metric-item-header { .metric-item-header {
padding: 10px 12px; padding: 10px 14px;
flex-wrap: wrap; display: flex;
gap: 8px; justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: nowrap; /* Force single line as requested */
} }
.metric-label-group { .metric-label-group {
flex-wrap: wrap; display: flex;
gap: 6px; align-items: center;
flex: 1; gap: 8px;
flex-wrap: nowrap;
min-width: 0; min-width: 0;
} }
.metric-label { .metric-label {
font-size: 0.85rem; font-size: 0.82rem;
white-space: normal; white-space: nowrap; /* Don't wrap */
overflow: hidden;
text-overflow: ellipsis;
} }
.metric-value { .metric-value {
font-size: 0.88rem; font-size: 0.85rem;
white-space: nowrap;
flex-shrink: 0;
} }
.chart-controls { .chart-controls {
@@ -2460,6 +2468,41 @@ input:checked+.slider:before {
height: 160px; height: 160px;
} }
.source-select {
display: none !important;
}
.server-table th,
.server-table td {
white-space: nowrap;
}
/* Server Detail Modal Full Screen for better fit on phone */
#serverDetailModal .modal {
width: 100% !important;
max-width: 100% !important;
height: 100vh !important;
max-height: 100vh !important;
border-radius: 0 !important;
margin: 0 !important;
top: 0 !important;
left: 0 !important;
transform: none !important;
}
#serverDetailModal .modal-body {
max-height: calc(100vh - 60px) !important;
}
/* Metric titles no wrap (as requested) */
.metric-item-header, .metric-label-group {
flex-wrap: nowrap !important;
}
.metric-label {
white-space: nowrap !important;
}
/* -- Modal full width -- */ /* -- Modal full width -- */
.modal { .modal {
width: 100%; width: 100%;