Skip to content

Commit

Permalink
Added max width constraint to the cards. (#6563)
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna authored Nov 8, 2023
1 parent f0db72e commit a3b7318
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions src/Components/Facility/FacilityConfigure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,28 +139,30 @@ export const FacilityConfigure = (props: IProps) => {
}}
className="w-full overflow-x-hidden"
>
<div className="cui-card mt-4">
<form onSubmit={handleSubmit}>
<div className="mt-2 grid grid-cols-1 gap-4">
<div>
<TextFormField
name="middleware_address"
label="Facility Middleware Address"
required
value={state.form.middleware_address}
onChange={handleChange}
error={state.errors?.middleware_address}
/>
<div className="mx-auto max-w-3xl">
<div className="cui-card mt-4">
<form onSubmit={handleSubmit}>
<div className="mt-2 grid grid-cols-1 gap-4">
<div>
<TextFormField
name="middleware_address"
label="Facility Middleware Address"
required
value={state.form.middleware_address}
onChange={handleChange}
error={state.errors?.middleware_address}
/>
</div>
</div>
</div>
<div className="flex flex-col gap-3 sm:flex-row sm:justify-end">
<Cancel onClick={() => navigate(`/facility/${facilityId}`)} />
<Submit onClick={handleSubmit} label="Update" />
</div>
</form>
</div>
<div className="flex flex-col gap-3 sm:flex-row sm:justify-end">
<Cancel onClick={() => navigate(`/facility/${facilityId}`)} />
<Submit onClick={handleSubmit} label="Update" />
</div>
</form>
</div>

<ConfigureHealthFacility facilityId={facilityId} />
<ConfigureHealthFacility facilityId={facilityId} />
</div>
</Page>
);
};

0 comments on commit a3b7318

Please sign in to comment.