From 2dd00e1b2017c867ff1add5e427609db50629a6c Mon Sep 17 00:00:00 2001 From: Nitin Singh Date: Sun, 28 Jul 2024 13:05:49 +0530 Subject: [PATCH] fix #8220 made date component responsive --- src/Components/Common/DateInputV2.tsx | 2 +- src/Components/Patient/DailyRounds.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Common/DateInputV2.tsx b/src/Components/Common/DateInputV2.tsx index 2e9f99de9bc..55fb5b50b06 100644 --- a/src/Components/Common/DateInputV2.tsx +++ b/src/Components/Common/DateInputV2.tsx @@ -256,7 +256,7 @@ const DateInputV2: React.FC = ({ type="text" readOnly disabled={disabled} - className={`cui-input-base cursor-pointer disabled:cursor-not-allowed ${className}`} + className={`cui-input-base cursor-pointer disabled:cursor-not-allowed max-sm:!px-2 ${className}`} placeholder={placeholder ?? t("select_date")} value={value && dayjs(value).format("DD/MM/YYYY")} /> diff --git a/src/Components/Patient/DailyRounds.tsx b/src/Components/Patient/DailyRounds.tsx index 89367c6eb37..7c7b24c1581 100644 --- a/src/Components/Patient/DailyRounds.tsx +++ b/src/Components/Patient/DailyRounds.tsx @@ -487,7 +487,7 @@ export const DailyRounds = (props: any) => { }} /> -
+ { dispatch({ type: "set_state", state: newState });