- 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>
19 lines
498 B
CSS
19 lines
498 B
CSS
.test-mode-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border-inline-start: var(--space-xs) solid var(--color-warning);
|
|
background: color-mix(in srgb, var(--color-warning) 18%, transparent);
|
|
color: var(--text);
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.test-mode-banner {
|
|
padding: var(--space-sm);
|
|
align-items: flex-start;
|
|
}
|
|
}
|