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

84 lines
1.5 KiB
CSS

.agent-policy-editor {
padding: var(--space-lg);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.agent-policy-table {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.agent-policy-row {
display: grid;
grid-template-columns: 1fr 220px;
gap: var(--space-md);
padding: var(--space-sm);
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--surface);
}
.agent-policy-cell {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.agent-policy-description {
color: var(--text-muted);
font-size: 0.75rem;
}
.agent-policy-inherit-note {
color: var(--text-dim);
font-size: 0.75rem;
}
.agent-policy-examples,
.agent-policy-exempt-list {
margin: 0;
padding-left: var(--space-xl);
display: grid;
gap: var(--space-xs);
}
.agent-policy-examples code,
.agent-policy-exempt-list code {
font-family: var(--font-mono);
font-size: 0.75rem;
}
.agent-policy-exempt {
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--surface);
padding: var(--space-sm);
color: var(--text-muted);
}
.agent-policy-exempt summary {
cursor: pointer;
color: var(--text);
font-weight: 600;
}
.agent-policy-exempt p {
margin: var(--space-sm) 0;
}
@media (max-width: 768px), (max-height: 480px) {
.agent-policy-row {
grid-template-columns: 1fr;
}
.agent-policy-examples,
.agent-policy-exempt-list {
padding-left: var(--space-lg);
}
}