Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed alignment of components in mobile view #10038

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@
"normal": "Normal",
"noshow": "No-show",
"not_eligible": "Not Eligible",
"not_found": "Not Found",
"not_specified": "Not Specified",
"notes": "Notes",
"notes_placeholder": "Type your Notes",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ const Login = (props: LoginProps) => {

{/* Login Forms Section */}
<div className="login-hero-form my-4 w-full md:mt-0 md:h-full md:w-1/2">
<div className="relative h-full items-center justify-center md:flex">
<div className="relative h-full items-center flex justify-center md:flex">
<div className="w-full max-w-[400px] space-y-6">
{/* Logo for Mobile */}
<div className="px-4 flex items-center mx-auto gap-4 md:hidden">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Updates = (props: PatientProps) => {
<PaginatedList.WhenEmpty>
<Card className="p-6">
<div className="text-lg font-medium text-muted-foreground">
{t("no_updates_found")}
{t("no_update_available")}
</div>
</Card>
</PaginatedList.WhenEmpty>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const PatientHome = (props: {
</div>
<div className="sticky top-20 mt-8 h-full lg:basis-1/6">
<section className="mb-4 space-y-2 md:flex">
<div className="mx-3 w-full lg:mx-0">
<div className="w-full lg:mx-0">
<div className="font-semibold text-secondary-900">
{t("actions")}
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Patient/PatientIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export default function PatientIndex({ facilityId }: { facilityId: string }) {
>
{t("cancel")}
</Button>
<Button onClick={handleVerify}>{t("verify")}</Button>
<Button className="mb-2" onClick={handleVerify}>
{t("verify")}
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Resource/ResourceCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export default function ResourceCreate(props: ResourceProps) {
<Separator />

<div className="space-y-6">
<div className="flex items-center justify-between">
<div className="flex flex-col lg:flex-row gap-2 lg:items-center justify-between">
<div>
<h3 className="text-lg font-medium">
{t("contact_information")}
Expand Down Expand Up @@ -418,6 +418,7 @@ export default function ResourceCreate(props: ResourceProps) {
<FormLabel>{t("contact_phone")}</FormLabel>
<FormControl>
<PhoneNumberFormField
className="mt-2"
{...field}
hideHelp={true}
types={["mobile", "landline"]}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Appointments/components/AppointmentTokenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ const AppointmentTokenCard = ({ id, appointment, facility }: Props) => {
return (
<Card
id={id}
className="p-6 w-[30rem] border border-gray-300 relative hover:scale-105 hover:rotate-1 hover:shadow-xl transition-all duration-300 ease-in-out"
className="p-6 lg:w-[30rem] border border-gray-300 relative hover:scale-105 hover:rotate-1 hover:shadow-xl transition-all duration-300 ease-in-out"
>
<div className="absolute inset-0 opacity-[0.1] pointer-events-none bg-[url('/images/care_logo_gray.svg')] bg-center bg-no-repeat bg-[length:60%_auto]" />
<div className="absolute inset-0 opacity-[0.1] pointer-events-none bg-[url('/images/care_logo_gray.svg')] bg-center bg-no-repeat bg-[length:40%_auto] lg:bg-[length:60%_auto]" />

<div className="relative">
<div className="flex items-start justify-between">
<div>
<h3 className="text-lg font-bold tracking-tight">
{facility.name}
</h3>
<div className="text-sm text-gray-600">
<div className="flex flex-col lg:flex-row text-sm text-gray-600">
<span>{facility.pincode}, </span>
<span>{`Ph.: ${facility.phone_number}`}</span>
</div>
Expand Down
Loading