Skip to content

Commit

Permalink
updated Appointments page responsive ui
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Jan 3, 2025
1 parent cabc677 commit ef7ce76
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/components/Schedule/Appointments/AppointmentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,16 @@ export default function AppointmentsPage(props: { facilityId?: string }) {
</div>
</div>

<div className="flex gap-4 items-center">
<div className="flex flex-col md:flex-row gap-4 items-start md:items-center">
<Input
className="w-[300px]"
className="w-full md:w-[300px]"
placeholder={t("search")}
value={qParams.search}
onChange={(e) => setQParams({ search: e.target.value })}
/>
<Popover>
<PopoverTrigger asChild>
<Button variant="secondary">
<Button variant="secondary" className="w-full md:w-auto">
<CareIcon icon="l-filter" className="mr-2" />
<span>{t("filter")}</span>
</Button>
Expand Down Expand Up @@ -313,13 +313,16 @@ export default function AppointmentsPage(props: { facilityId?: string }) {
<ScrollBar orientation="horizontal" />
</ScrollArea>
) : (
<AppointmentRow
facilityId={facilityId}
practitioner={qParams.practitioner}
slot={qParams.slot}
date={date}
search={qParams.search?.toLowerCase()}
/>
<ScrollArea>
<AppointmentRow
facilityId={facilityId}
practitioner={qParams.practitioner}
slot={qParams.slot}
date={date}
search={qParams.search?.toLowerCase()}
/>
<ScrollBar orientation="horizontal" />
</ScrollArea>
)}
</Page>
);
Expand Down

0 comments on commit ef7ce76

Please sign in to comment.