Files
fusion/packages/dashboard/app/components/AgentsOverviewBar.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

72 lines
1.5 KiB
CSS

.agents-overview-bar {
border-bottom: 1px solid var(--border);
background: var(--surface);
padding: var(--space-md) var(--space-lg);
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.agents-overview-bar__toggle {
width: 100%;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--card);
color: var(--text);
padding: var(--space-sm) var(--space-md);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
cursor: pointer;
transition: background var(--transition-fast), border-color var(--transition-fast);
}
.agents-overview-bar__toggle:hover {
background: var(--card-hover);
}
.agents-overview-bar__toggle:focus-visible {
outline: none;
box-shadow: var(--focus-ring-strong);
}
.agents-overview-bar__title-wrap {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
}
.agents-overview-bar__title {
font-weight: 600;
}
.agents-overview-bar__meta {
font-size: calc(var(--space-sm) + var(--space-xs));
}
.agents-overview-bar__content {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.agents-overview-bar__metrics {
margin-bottom: 0;
}
.agents-overview-bar__active-panel {
margin-top: 0;
margin-bottom: 0;
}
@media (max-width: 768px), (max-height: 480px) {
.agents-overview-bar {
padding: var(--space-sm) var(--space-md);
}
.agents-overview-bar__toggle {
min-height: calc(var(--space-2xl) + var(--space-sm));
}
}