mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
b6f8641c28
* refactor(ui): move gateway host panel and connection status to the Gateway page * test(ui): update e2e expectations for the Gateway settings page move
113 lines
2.3 KiB
CSS
113 lines
2.3 KiB
CSS
/* ── Escape hatch: Gateway host identity + metered stats grid ──
|
|
A genuine two-column stat grid with usage meters; stays flat (no nested
|
|
borders/surfaces) inside one .settings-group with row-matched paddings. */
|
|
|
|
.config-host {
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
|
|
gap: var(--space-4) var(--space-5);
|
|
align-items: start;
|
|
padding: var(--space-3) var(--space-4);
|
|
}
|
|
|
|
.config-host__identity {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
|
|
.config-host__name {
|
|
font-size: var(--control-ui-text-md);
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
color: var(--text-strong);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.config-host__meta {
|
|
font-size: var(--control-ui-text-sm);
|
|
line-height: 1.4;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.config-host__address {
|
|
font-family: var(--mono);
|
|
font-size: var(--control-ui-text-xs);
|
|
color: var(--text);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.config-host__stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.config-host__stat {
|
|
display: grid;
|
|
align-content: start;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
|
|
.config-host__stat-label {
|
|
font-size: var(--control-ui-text-xs);
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.config-host__stat-value {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-1);
|
|
font-size: var(--control-ui-text-lg);
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
color: var(--text-strong);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.config-host__stat-unit {
|
|
font-size: var(--control-ui-text-xs);
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.config-host__stat-detail {
|
|
font-size: var(--control-ui-text-xs);
|
|
line-height: 1.35;
|
|
color: var(--muted);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.config-host__meter {
|
|
height: 4px;
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, var(--border) 55%, transparent);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.config-host__meter-fill {
|
|
width: var(--config-host-meter-fill, 0%);
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: var(--ok);
|
|
}
|
|
|
|
.config-host__meter-fill--warn {
|
|
background: var(--warn);
|
|
}
|
|
|
|
.config-host__meter-fill--critical {
|
|
background: var(--danger);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.config-host {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|