- 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>
45 lines
1.1 KiB
CSS
45 lines
1.1 KiB
CSS
.confirm-dialog {
|
|
width: min(calc(var(--space-xl) * 18), calc(100vw - var(--space-2xl)));
|
|
}
|
|
|
|
.confirm-dialog__body {
|
|
color: var(--text-muted);
|
|
line-height: 1.5;
|
|
padding: 0 var(--space-xl) var(--space-lg);
|
|
white-space: pre-wrap;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.confirm-dialog__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.confirm-dialog-overlay {
|
|
align-items: center;
|
|
padding-top: max(var(--space-md), env(safe-area-inset-top, 0px));
|
|
padding-right: var(--space-sm);
|
|
padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
|
|
padding-left: var(--space-sm);
|
|
}
|
|
|
|
.confirm-dialog {
|
|
width: min(100%, calc(var(--space-xl) * 16));
|
|
max-height: calc(100dvh - (var(--space-md) * 2) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
|
|
height: auto;
|
|
border: var(--btn-border-width) solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.confirm-dialog__actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|