Files
fusion/packages/dashboard/app/components/AgentMentionPopup.css
gsxdsm ed4d021d3d fix(dashboard): keep mobile nav visible on Android landscape and during keyboard
- 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>
2026-05-22 13:12:36 -07:00

120 lines
2.4 KiB
CSS

/* === AgentMentionPopup === */
.chat-input-wrapper,
.quick-chat-input-wrapper {
position: relative;
display: flex;
flex: 1;
flex-direction: column;
align-items: stretch;
gap: var(--space-xs);
min-width: 0;
}
.agent-mention-popup {
position: absolute;
z-index: 250;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
min-width: 220px;
max-width: 320px;
max-height: 240px;
overflow-y: auto;
box-shadow: var(--shadow-lg);
padding: var(--space-xs) 0;
}
.agent-mention-popup--below {
top: calc(100% + var(--space-xs));
left: 0;
}
.agent-mention-popup--above {
bottom: calc(100% + var(--space-xs));
left: 0;
}
.agent-mention-item {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: calc(var(--space-sm) - (var(--space-xs) / 2)) var(--space-md);
font-size: calc(var(--space-sm) + var(--space-xs) * 1.25);
color: var(--text);
cursor: pointer;
border: none;
background: transparent;
width: 100%;
text-align: left;
}
.agent-mention-item:hover,
.agent-mention-item--highlighted {
background: var(--card-hover);
}
.agent-mention-item:focus-visible {
outline: none;
box-shadow: var(--focus-ring-strong);
background: var(--card-hover);
}
.agent-mention-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.agent-mention-role {
font-family: var(--font-mono);
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
color: var(--text-muted);
}
.agent-mention-empty {
padding: calc(var(--space-sm) + (var(--space-xs) / 2)) var(--space-md);
font-size: var(--space-md);
color: var(--text-dim);
}
.agent-mention-section-header {
padding: var(--space-xs) var(--space-md);
font-size: calc(var(--space-sm) + var(--space-xs) * 0.5);
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
}
.agent-mention-hint {
padding: var(--space-xs) var(--space-md);
font-size: var(--space-md);
color: var(--text-muted);
}
.agent-mention-member-dot {
background: var(--color-success);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 768px), (max-height: 480px) {
.agent-mention-popup {
min-width: 200px;
max-width: min(280px, 100%);
}
.agent-mention-popup--below,
.agent-mention-popup--above {
bottom: calc(100% + var(--space-xs));
top: auto;
left: 0;
}
}