Skip to content

Commit

Permalink
made responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Sep 8, 2024
1 parent 909d821 commit d8d89f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Common/DateInputV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const DateInputV2: React.FC<Props> = ({
case "LEFT":
return "left-0";
case "RIGHT":
return "right-0 transform translate-x-1/2";
return "right-0 transform md:translate-x-1/2";
case "CENTER":
return "transform -translate-x-1/2";
case "TOP-LEFT":
Expand Down Expand Up @@ -317,7 +317,7 @@ const DateInputV2: React.FC<Props> = ({
<PopoverPanel
static
className={classNames(
`cui-dropdown-base absolute my-0.5 ${time ? "w-[400px]" : "w-72"} transition-all ${open ? "visible opacity-100" : "invisible opacity-0"} flex divide-y-0 rounded p-4`,
`cui-dropdown-base absolute my-0.5 ${time ? "w-full md:w-[400px]" : "w-72"} transition-all ${open ? "visible opacity-100" : "invisible opacity-0"} flex divide-y-0 rounded p-4`,
getPosition(),
)}
>
Expand Down

0 comments on commit d8d89f1

Please sign in to comment.