- 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>
106 lines
2.0 KiB
CSS
106 lines
2.0 KiB
CSS
.create-room-modal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.create-room-modal-name-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.create-room-modal-name-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.create-room-modal-name-hash {
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.create-room-modal-name-field .input {
|
|
flex: 1;
|
|
}
|
|
|
|
.create-room-modal-selected {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
padding: 0 var(--space-xl);
|
|
}
|
|
|
|
.create-room-modal-chip {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.create-room-modal-member-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
max-height: calc(var(--space-2xl) * 8);
|
|
overflow-y: auto;
|
|
padding: 0 var(--space-xl);
|
|
}
|
|
|
|
.create-room-modal-member-row {
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
text-align: left;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-sm);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
transition: background var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.create-room-modal-member-row:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.create-room-modal-member-row:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.create-room-modal-member-row--selected {
|
|
border-color: var(--todo);
|
|
background: color-mix(in srgb, var(--todo) 12%, transparent);
|
|
}
|
|
|
|
.create-room-modal-member-role {
|
|
margin-left: auto;
|
|
color: var(--text-muted);
|
|
font-size: var(--space-md);
|
|
}
|
|
|
|
.create-room-modal-empty {
|
|
color: var(--text-muted);
|
|
padding: var(--space-md);
|
|
text-align: center;
|
|
}
|
|
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.create-room-modal {
|
|
width: 100%;
|
|
}
|
|
|
|
.create-room-modal-selected,
|
|
.create-room-modal-member-list {
|
|
padding: 0 var(--space-md);
|
|
}
|
|
|
|
.create-room-modal .modal-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.create-room-modal .modal-actions .btn {
|
|
width: 100%;
|
|
}
|
|
}
|