From 94bef3d193f449e6396b1bf4688180281d260ca7 Mon Sep 17 00:00:00 2001 From: BigSimmo <87357024+BigSimmo@users.noreply.github.com> Date: Wed, 29 Jul 2026 20:44:11 +0800 Subject: [PATCH 1/5] Polish responsive document result cards --- .../clinical-dashboard/answer-content.tsx | 18 +++++--- .../document-search-results.tsx | 37 ++++++++------- tests/ui-smoke.spec.ts | 45 +++++++++++++++++++ 3 files changed, 76 insertions(+), 24 deletions(-) diff --git a/src/components/clinical-dashboard/answer-content.tsx b/src/components/clinical-dashboard/answer-content.tsx index e79bc6511d..1259e5de90 100644 --- a/src/components/clinical-dashboard/answer-content.tsx +++ b/src/components/clinical-dashboard/answer-content.tsx @@ -88,29 +88,33 @@ export function ScopeAndGovernanceNotice({ scope?.matchedDocumentCount === 0; if (!showScope && groupedWarnings.length === 0) return null; return ( -
+
{showScope && scope ? ( -

+

Scope: {scope.summary} {scope.queryMode && scope.queryMode !== "auto" ? ` ยท ${scope.queryMode.replaceAll("_", " ")}` : ""}

) : null} {scope?.warnings?.length ? ( -