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

55 lines
1.2 KiB
CSS

.approval-notification-banner {
padding: var(--space-sm) var(--space-lg);
border-bottom: var(--btn-border-width) solid var(--border);
background: color-mix(in srgb, var(--color-warning) 12%, transparent);
}
.approval-notification-banner__content {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
}
.approval-notification-banner__headline {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
color: var(--text);
font-weight: 600;
}
.approval-notification-banner__actions {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
}
.approval-notification-banner__actions .btn {
border-color: var(--color-warning);
}
.approval-notification-banner__dismiss {
color: var(--text-muted);
}
.approval-notification-banner__dismiss:hover {
color: var(--text);
}
@media (max-width: 768px), (max-height: 480px) {
.approval-notification-banner {
padding: var(--space-sm) var(--space-md);
}
.approval-notification-banner__content {
flex-direction: column;
align-items: flex-start;
}
.approval-notification-banner__actions {
width: 100%;
justify-content: space-between;
}
}