diff --git a/src/app/globals.css b/src/app/globals.css index 2da7077c8..a9cc33e69 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1442,6 +1442,21 @@ summary::-webkit-details-marker { color: var(--clinical-accent); } +/* Touch devices: suggestion/follow-up chips are primary tap targets (the + follow-ups sit directly under the composer and each fires a new search). + Meet the 44px tap floor and widen the gap so neighbouring chips in the + horizontal scroll row don't invite mis-taps. Fine-pointer (mouse) users keep + the compact 32px chip — no desktop visual change. */ +@media (pointer: coarse) { + .answer-suggestion-chips { + gap: 0.5rem; + } + + .answer-suggestion-chip { + min-height: var(--spacing-tap); + } +} + .answer-suggestion-chip:disabled { cursor: not-allowed; } diff --git a/src/components/ClinicalDashboard.tsx b/src/components/ClinicalDashboard.tsx index 322216daf..a4a636c71 100644 --- a/src/components/ClinicalDashboard.tsx +++ b/src/components/ClinicalDashboard.tsx @@ -376,7 +376,7 @@ function PriorAnswerTurnSurface({ type="button" onClick={onToggleCollapsed} aria-expanded={!collapsed} - className="inline-flex min-h-9 items-center gap-1.5 rounded-md px-1 text-xs font-semibold text-[color:var(--text-muted)] transition hover:text-[color:var(--text-heading)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--focus)]" + className="inline-flex min-h-tap items-center gap-1.5 rounded-md px-1 text-xs font-semibold text-[color:var(--text-muted)] transition hover:text-[color:var(--text-heading)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--focus)]" >