- 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>
61 lines
930 B
CSS
61 lines
930 B
CSS
.top-progress-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
z-index: 101;
|
|
background: transparent;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.top-progress-bar[data-visible="true"] {
|
|
opacity: 1;
|
|
}
|
|
|
|
.top-progress-bar__indicator {
|
|
width: 40%;
|
|
height: 100%;
|
|
background: var(--accent);
|
|
animation: top-progress-slide 1.2s linear infinite;
|
|
}
|
|
|
|
@keyframes top-progress-slide {
|
|
0% {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(250%);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.top-progress-bar {
|
|
height: 3px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.top-progress-bar__indicator {
|
|
width: 100%;
|
|
animation: top-progress-pulse 2.4s ease-in-out infinite;
|
|
}
|
|
}
|
|
|
|
@keyframes top-progress-pulse {
|
|
0% {
|
|
opacity: 0.65;
|
|
}
|
|
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0.65;
|
|
}
|
|
}
|