- 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>
105 lines
1.8 KiB
CSS
105 lines
1.8 KiB
CSS
.goals-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.goals-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.goals-count {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-add-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-add-button:focus-visible,
|
|
.goals-card:focus-visible,
|
|
.goals-activate-button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.goals-warning {
|
|
margin: 0;
|
|
padding: var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border: calc(var(--space-xs) / 4) solid var(--color-warning);
|
|
background: color-mix(in srgb, var(--color-warning) 10%, transparent);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.goals-error {
|
|
margin: 0;
|
|
}
|
|
|
|
.goals-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-card-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.goals-card-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-md) + var(--space-xs));
|
|
}
|
|
|
|
.goals-card-status {
|
|
margin: var(--space-xs) 0 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-activate-button {
|
|
min-width: calc(var(--space-2xl) * 2);
|
|
}
|
|
|
|
.goals-empty {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.goals-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.goals-add-button,
|
|
.goals-card,
|
|
.goals-activate-button {
|
|
min-height: calc(var(--space-xl) + var(--space-md));
|
|
}
|
|
|
|
.goals-card {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|