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

fix #8220 made date component responsive #8223

Merged
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
2 changes: 1 addition & 1 deletion src/Components/Common/DateInputV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const DateInputV2: React.FC<Props> = ({
type="text"
readOnly
disabled={disabled}
className={`cui-input-base cursor-pointer disabled:cursor-not-allowed ${className}`}
className={`cui-input-base cursor-pointer !px-2 disabled:cursor-not-allowed ${className}`}
placeholder={placeholder ?? t("select_date")}
value={value && dayjs(value).format("DD/MM/YYYY")}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -932,11 +932,11 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => {
);
})}
</div>
<div className="flex h-full w-full overflow-auto xl:ml-72">
<div className="flex h-full w-full overflow-auto xl:ml-64 2xl:ml-72 ">
<div className="w-full max-w-4xl">
<form
onSubmit={handleSubmit}
className="rounded bg-white p-6 transition-all sm:rounded-xl sm:p-12"
className="rounded bg-white p-6 transition-all sm:rounded-xl sm:p-8 "
>
<DraftSection
handleDraftSelect={(newState: any) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export const DailyRounds = (props: any) => {
}}
/>
</div>
<form className="w-full max-w-4xl rounded-lg bg-white px-8 py-5 shadow md:m-4 md:px-16 md:py-11">
<form className="w-full max-w-4xl rounded-lg bg-white px-3 py-5 shadow sm:px-6 md:py-11">
<DraftSection
handleDraftSelect={(newState) => {
dispatch({ type: "set_state", state: newState });
Expand Down
8 changes: 4 additions & 4 deletions src/Components/Symptoms/SymptomsBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ const SymptomEntry = (props: {
const disabled =
props.disabled || symptom.clinical_impression_status === "entered-in-error";
return (
<div className="grid grid-cols-6 items-center gap-2 md:grid-cols-5">
<div className="grid grid-cols-6 items-center gap-2 lg:grid-cols-8 xl:grid-cols-5">
<DateFormField
className="col-span-3 w-full md:col-span-1"
className="col-span-3 w-full lg:col-span-2 xl:col-span-1 "
name="onset_date"
value={new Date(symptom.onset_date)}
disableFuture
Expand All @@ -187,7 +187,7 @@ const SymptomEntry = (props: {
errorClassName="hidden"
/>
<DateFormField
className="col-span-3 w-full md:col-span-1"
className="col-span-3 w-full lg:col-span-2 xl:col-span-1"
name="cure_date"
value={symptom.cure_date ? new Date(symptom.cure_date) : undefined}
disableFuture
Expand All @@ -198,7 +198,7 @@ const SymptomEntry = (props: {
onChange={props.onChange}
errorClassName="hidden"
/>
<div className="col-span-6 flex items-center gap-2 md:col-span-3">
<div className="col-span-6 flex items-center gap-2 lg:col-span-4 xl:col-span-3">
<div
className={classNames(
"cui-input-base w-full font-medium",
Expand Down
Loading