feat(display): add compact QUIC and host health views
This commit is contained in:
1 parent
b964dc2bbc
commit
b25b111134
14 files changed
+921
-251
No files matched your search
+613
-20
@@ -70,6 +70,523 @@
|
||||
padding: 40px 24px 80px;
|
||||
}
|
||||
|
||||
/* 线路页是数据工作区:宽屏充分利用空间,图表和辅助文字保持清晰对比。 */
|
||||
.line-page {
|
||||
--line-secondary: color-mix(in srgb, var(--app-ink) 58%, var(--app-ink-muted));
|
||||
width: min(100%, 1640px);
|
||||
max-width: 1640px;
|
||||
padding-top: 24px;
|
||||
padding-bottom: 56px;
|
||||
/* 正文背景上的全局柔光会让标题、节点状态和说明显得发虚;数据页文字保持锐利。 */
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.line-page .hero h1 {
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.line-page .line-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 16px;
|
||||
}
|
||||
|
||||
.line-page .line-title-row h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(24px, 2vw, 32px);
|
||||
}
|
||||
|
||||
.line-page .line-version-switch {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.line-page .line-route-meta {
|
||||
gap: 6px 12px;
|
||||
margin-top: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.line-page .line-route-status {
|
||||
color: var(--app-ink);
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.line-page .line-range-picker {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.line-page .faint,
|
||||
.line-page .chart-hint,
|
||||
.line-page .chart-section h2,
|
||||
.line-page .stat .k {
|
||||
color: var(--line-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.line-page .line-peer-name {
|
||||
color: var(--line-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.line-page .line-section-label {
|
||||
color: var(--app-ink);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-page .line-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 16px;
|
||||
padding: 8px 12px;
|
||||
border-radius: var(--r-card);
|
||||
background: color-mix(in srgb, var(--app-card) 78%, transparent);
|
||||
}
|
||||
|
||||
.line-page .line-toolbar-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.line-page .line-smoothing {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.line-page .line-header-surface,
|
||||
.line-page .line-metric-surface {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: var(--glass-filter);
|
||||
box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-drop);
|
||||
}
|
||||
|
||||
.line-page .line-header-surface {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 18px 20px 16px;
|
||||
border-radius: var(--r-group-outer);
|
||||
}
|
||||
|
||||
.line-page .line-metric-surface {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
padding: 18px;
|
||||
border-radius: var(--r-group-outer);
|
||||
}
|
||||
|
||||
.line-page .line-metric-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 20px;
|
||||
}
|
||||
|
||||
.line-page .line-metric-heading {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 12px;
|
||||
}
|
||||
|
||||
.line-page .line-metric-heading h2 {
|
||||
color: var(--app-ink);
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.line-page .line-metric-heading > span {
|
||||
color: var(--line-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.line-page .range-toolbar {
|
||||
align-items: center;
|
||||
gap: 8px 14px;
|
||||
}
|
||||
|
||||
.line-page .range-toolbar-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 14px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.line-page .line-data-notes {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 14px;
|
||||
color: var(--line-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 450;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.line-page .crumbs,
|
||||
.line-page .minimap .tick,
|
||||
.line-page .minimap .readout,
|
||||
.line-page .chart-legend,
|
||||
.line-page .stat .v small {
|
||||
color: var(--line-secondary);
|
||||
}
|
||||
|
||||
.line-page .minimap .tick {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.line-page .chart-section h2,
|
||||
.line-page .chart-card h3 {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.line-page .chart-card {
|
||||
min-width: 0;
|
||||
gap: 2px;
|
||||
padding: 12px 14px;
|
||||
background: color-mix(in srgb, var(--glass-line) 4%, transparent);
|
||||
box-shadow: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
|
||||
.line-page .chart-card h3 {
|
||||
font-size: 14px;
|
||||
color: var(--app-ink);
|
||||
}
|
||||
|
||||
.line-page .quic-chart-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.line-page .line-quic-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.line-page .line-combo-card {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
min-height: 84px;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--r-control);
|
||||
background: color-mix(in srgb, var(--glass-line) 4%, transparent);
|
||||
}
|
||||
|
||||
.line-page .line-combo-card h3 {
|
||||
color: var(--line-secondary);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.line-page .line-combo-primary {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
color: var(--line-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.line-page .line-combo-primary strong {
|
||||
color: var(--app-ink);
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.line-page .combo-tone-ok {
|
||||
color: var(--app-ok) !important;
|
||||
}
|
||||
|
||||
.line-page .combo-tone-warn {
|
||||
color: var(--app-warn) !important;
|
||||
}
|
||||
|
||||
.line-page .combo-tone-bad {
|
||||
color: var(--app-bad) !important;
|
||||
}
|
||||
|
||||
.line-page .line-combo-secondary,
|
||||
.line-page .line-jitter-pair {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 10px;
|
||||
color: var(--line-secondary);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.line-page .line-combo-secondary b,
|
||||
.line-page .line-jitter-pair b {
|
||||
color: var(--app-ink);
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.line-page .combo-divider {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.line-page .line-combo-badge {
|
||||
align-self: flex-start;
|
||||
padding: 2px 7px;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--app-card-inset);
|
||||
color: var(--line-secondary);
|
||||
font-size: 10px;
|
||||
line-height: 1.4;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.line-page .line-jitter-pair {
|
||||
gap: 8px 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.line-page .line-session-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 18px;
|
||||
padding: 10px 4px 2px;
|
||||
border-top: 1px solid var(--glass-head-line);
|
||||
background: transparent;
|
||||
color: var(--line-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.line-page .line-session-title {
|
||||
color: var(--app-ink);
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-page .line-session-items {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px 18px;
|
||||
}
|
||||
|
||||
.line-page .line-session-items b {
|
||||
color: var(--app-ink);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.line-page .line-session-bar small {
|
||||
flex-basis: 100%;
|
||||
color: var(--line-secondary);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.line-page .tiles {
|
||||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.line-page .tiles > .stat {
|
||||
box-shadow: 0 8px 24px -20px var(--app-shadow);
|
||||
}
|
||||
|
||||
.line-page .line-metric-subhead {
|
||||
grid-column: 1 / -1;
|
||||
margin-top: 4px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid var(--app-outline-soft);
|
||||
color: var(--app-ink);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.line-page .line-wide-note {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.line-page .stack {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.line-page .chart-section {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.line-page .chart-section h2 {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.line-page .minimap {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.line-page .minimap .track {
|
||||
height: 42px;
|
||||
margin-bottom: 22px;
|
||||
background: repeating-linear-gradient(
|
||||
135deg,
|
||||
color-mix(in srgb, var(--glass-bg) 94%, var(--glass-shade) 6%) 0 8px,
|
||||
color-mix(in srgb, var(--glass-bg) 86%, var(--glass-shade) 14%) 8px 11px
|
||||
);
|
||||
}
|
||||
|
||||
.line-page .minimap .ticks {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.line-page .minimap .tick {
|
||||
height: 20px;
|
||||
padding-top: 8px;
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.line-page .minimap .tick.date {
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.line-page .minimap .readout {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
margin-top: 3px;
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.line-page .minimap .readout > span {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.line-page .minimap .sel {
|
||||
border-block: 1px solid var(--pick);
|
||||
border-inline: 0;
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--pick) 12%, transparent);
|
||||
}
|
||||
|
||||
.line-page .minimap .sel .h {
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
width: 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.line-page .minimap .sel .h::before {
|
||||
position: absolute;
|
||||
inset: -8px -4px;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.line-page .minimap .sel .h.l {
|
||||
left: -2px;
|
||||
}
|
||||
|
||||
.line-page .minimap .sel .h.r {
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
.line-page .minimap svg rect.has {
|
||||
fill: var(--app-card);
|
||||
}
|
||||
|
||||
.line-page .range-picker > .row:last-child {
|
||||
margin-top: 4px !important;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.line-page {
|
||||
padding: 20px 14px 48px;
|
||||
}
|
||||
|
||||
.line-page .line-header-surface {
|
||||
padding: 14px;
|
||||
border-radius: var(--r-card);
|
||||
}
|
||||
|
||||
.line-page .line-metric-surface {
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border-radius: var(--r-card);
|
||||
}
|
||||
|
||||
.line-page .line-metric-header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.line-page .range-toolbar > .group {
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.line-page .range-toolbar > .group > button,
|
||||
.line-page .range-toolbar-right .group > button {
|
||||
flex: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-page .range-toolbar-right {
|
||||
width: 100%;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: flex-start;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.line-page .minimap .tick {
|
||||
width: max-content;
|
||||
min-width: 0;
|
||||
padding-right: 1px;
|
||||
padding-left: 1px;
|
||||
font-size: 9px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-page .minimap .tick:not(.date):not(:nth-child(6n + 1)) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.line-page .hero h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.line-page .line-title-row {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.line-page .line-smoothing {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.line-page .line-quic-summary {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.line-page .quic-chart-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 40px;
|
||||
font-weight: 800;
|
||||
@@ -716,7 +1233,7 @@
|
||||
}
|
||||
|
||||
|
||||
/* ── 线路详情的图表:按 UDP、TCP、评分分组,宽图占满一行 ── */
|
||||
/* ── 线路详情的图表:按 QUIC、TCP、评分分组,宽图占满一行 ── */
|
||||
.chart-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -799,7 +1316,7 @@
|
||||
color: var(--app-ink-faint);
|
||||
}
|
||||
|
||||
/* ── 总览卡片里的 UDP:一排小格(每 5 分钟一格,按丢包着色)+ 延迟小走势,尽量轻 ── */
|
||||
/* ── 总览卡片里的 QUIC Datagram:按方向显示丢包小格 ── */
|
||||
.line-name {
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
@@ -809,47 +1326,123 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.udp-strip {
|
||||
position: relative;
|
||||
.host-link {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: transform 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.host-link:hover,
|
||||
.host-link:focus-visible {
|
||||
color: inherit;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--glass-shade) 75%, transparent);
|
||||
}
|
||||
|
||||
.host-link:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.line-mini-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.udp-head {
|
||||
.line-mini-quic-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
font-size: 11px;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.udp-title {
|
||||
color: var(--app-ink-faint);
|
||||
.line-mini-quic-head > span,
|
||||
.line-mini-direction-row > span:first-child,
|
||||
.line-mini-tcp-row > span:first-child {
|
||||
color: var(--app-ink-muted);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.udp-title b {
|
||||
margin-left: 2px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
.line-mini-quic-head > strong,
|
||||
.line-mini-tcp-row > strong {
|
||||
color: var(--app-ink);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.udp-title b.udp-rate.ok {
|
||||
.line-mini-quic-head > small {
|
||||
margin-left: auto;
|
||||
color: var(--app-ink-faint);
|
||||
font-size: 9px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-mini-direction-row {
|
||||
display: grid;
|
||||
grid-template-columns: 34px minmax(0, 1fr) 66px;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.line-mini-direction-row > span:first-child,
|
||||
.line-mini-tcp-row > span:first-child {
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-mini-tcp-row {
|
||||
display: grid;
|
||||
grid-template-columns: 34px 46px minmax(0, 1fr) max-content;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
margin-top: 2px;
|
||||
padding-top: 5px;
|
||||
border-top: 1px solid var(--app-outline-soft);
|
||||
}
|
||||
|
||||
.line-mini-tcp-row > strong {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.line-mini-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1px 5px;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--app-card-inset);
|
||||
color: var(--app-ink-muted);
|
||||
font-size: 9px;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line-mini-badge.ok {
|
||||
background: var(--app-ok-container);
|
||||
color: var(--app-ok);
|
||||
}
|
||||
|
||||
.udp-title b.udp-rate.warn {
|
||||
.line-mini-badge.warn {
|
||||
background: var(--app-warn-container);
|
||||
color: var(--app-warn);
|
||||
}
|
||||
|
||||
.udp-title b.udp-rate.bad {
|
||||
.line-mini-badge.bad {
|
||||
background: var(--app-bad-container);
|
||||
color: var(--app-bad);
|
||||
}
|
||||
|
||||
.bars {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
height: 10px;
|
||||
min-width: 0;
|
||||
gap: 1.5px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.bar {
|
||||
@@ -875,7 +1468,7 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* UDP 和 TCP 两段之间留一点空 */
|
||||
/* QUIC 和 TCP 两段之间留一点空 */
|
||||
.strips {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in new issue
Block a user