Files
fusion/packages/dashboard/app/components/AgentTokenStatsPanel.css
gsxdsm ed4d021d3d fix(dashboard): keep mobile nav visible on Android landscape and during keyboard
- Broaden mobile media query to include (max-height: 480px) so landscape
  phones (which exceed 768 CSS px wide) still render the bottom nav and
  mobile board layout instead of desktop horizontally-scrollable columns.
- Guard useMobileKeyboard against pinch-zoom (vv.scale > 1) — Android
  Chrome ignores user-scalable=no, and a focused textarea + zoom was
  false-positiving keyboard-open and hiding MobileNavBar.
- Read documentElement.clientHeight instead of stale window.innerHeight
  when computing keyboard overlap (Android multi-window can leave
  innerHeight cached at a wildly different value than the actual layout
  viewport — observed 2848 while html was 797).
- Add interactive-widget=resizes-content to the viewport meta so Android
  Chrome shrinks the layout viewport with the soft keyboard, matching iOS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 13:12:36 -07:00

129 lines
3.0 KiB
CSS

.agent-token-stats-panel {
margin-bottom: var(--space-lg);
padding: var(--space-md);
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--card);
box-shadow: var(--shadow-sm);
}
.agent-token-stats-panel__header {
margin-bottom: var(--space-md);
}
.agent-token-stats-panel__title {
margin: 0;
font-size: calc(var(--space-md) + var(--space-xs));
font-weight: 600;
color: var(--text);
}
.agent-token-stats-panel__totals {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-2xl) * 4), 1fr));
gap: var(--space-sm);
margin-bottom: var(--space-md);
}
.agent-token-stats-panel__total-card {
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--surface);
}
.agent-token-stats-panel__total-label {
color: var(--text-muted);
font-size: calc(var(--space-sm) + var(--space-xs));
text-transform: uppercase;
letter-spacing: calc(var(--space-xs) / 8);
}
.agent-token-stats-panel__total-value {
color: var(--text);
font-size: calc(var(--space-lg) + var(--space-xs));
line-height: 1.2;
font-family: var(--font-mono);
font-weight: 700;
}
.agent-token-stats-panel__table-wrapper {
overflow-x: auto;
}
.agent-token-stats-panel__table {
width: 100%;
border-collapse: collapse;
}
.agent-token-stats-panel__table th,
.agent-token-stats-panel__table td {
padding: var(--space-sm);
border-bottom: 1px solid var(--border);
color: var(--text);
text-align: right;
font-size: calc(var(--space-sm) + var(--space-xs));
}
.agent-token-stats-panel__table thead th {
text-transform: uppercase;
letter-spacing: calc(var(--space-xs) / 8);
color: var(--text-muted);
font-weight: 600;
}
.agent-token-stats-panel__table th:first-child,
.agent-token-stats-panel__table td:first-child {
text-align: left;
}
.agent-token-stats-panel__agent-cell {
display: flex;
flex-direction: column;
gap: calc(var(--space-xs) * 0.5);
}
.agent-token-stats-panel__agent-name {
color: var(--text);
}
.agent-token-stats-panel__agent-id {
color: var(--text-muted);
font-family: var(--font-mono);
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
text-transform: none;
letter-spacing: normal;
}
.agent-token-stats-panel__total-cell {
font-family: var(--font-mono);
font-weight: 700;
}
.agent-token-stats-panel__empty {
padding: var(--space-md);
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
background: color-mix(in srgb, var(--surface) 85%, transparent);
font-size: calc(var(--space-sm) + var(--space-xs));
}
@media (max-width: 768px), (max-height: 480px) {
.agent-token-stats-panel {
padding: var(--space-sm);
}
.agent-token-stats-panel__totals {
grid-template-columns: 1fr;
}
.agent-token-stats-panel__table th,
.agent-token-stats-panel__table td {
padding: var(--space-xs) var(--space-sm);
}
}