From eeae6427516c9225304ea86c959f775df6d41fbf Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Mon, 1 Jun 2026 20:00:19 +0300 Subject: [PATCH] Remove scroll-snap so the first card's left padding isn't clipped scroll-snap-align:start snapped the first card flush to the scroll-port start, hiding the row's left padding and making the card look cut off on the left. Drop snap-x/snap-start; the p-2 breathing room now shows on both ends. Co-Authored-By: Claude Opus 4.8 --- frontend/components/chat/patient-cards.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/components/chat/patient-cards.tsx b/frontend/components/chat/patient-cards.tsx index d8bed64..cd2bf7d 100644 --- a/frontend/components/chat/patient-cards.tsx +++ b/frontend/components/chat/patient-cards.tsx @@ -57,7 +57,7 @@ const sexLabel: Record = { F: "Female", M: "Male" }; // Fixed width so the cards sit in a horizontal scroll row instead of squashing, // plus a subtle clickable affordance (they open a detail dialog). const rowCard = - "w-80 shrink-0 cursor-pointer snap-start text-left outline-none transition hover:ring-foreground/20 focus-visible:ring-2 focus-visible:ring-ring"; + "w-80 shrink-0 cursor-pointer text-left outline-none transition hover:ring-foreground/20 focus-visible:ring-2 focus-visible:ring-ring"; function SectionLabel({ children }: { children: ReactNode }) { return ( @@ -480,7 +480,7 @@ function VisitsCard({ patient }: { patient: Patient }) { function LoadingCards() { return ( <> - +
@@ -497,7 +497,7 @@ function LoadingCards() { {[0, 1, 2, 3, 4, 5].map((card) => ( - + @@ -527,7 +527,7 @@ export function PatientResult({ status, fileNumber, patient }: PatientResultProp } return ( -
+
{status === "loading" || !patient ? ( ) : (