Skip to content

Commit

Permalink
Fix : Date field overflow in exception form in mobile view (#10112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahendar0701 authored Jan 24, 2025
1 parent 75164fd commit 363ef98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default function CreateScheduleExceptionSheet({
)}
/>

<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
<FormField
control={form.control}
name="valid_from"
Expand Down Expand Up @@ -297,6 +297,7 @@ export default function CreateScheduleExceptionSheet({
<SheetClose asChild>
<Button
variant="outline"
className="mt-2 md:mt-0"
type="button"
disabled={isPending}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,12 @@ export default function CreateScheduleTemplateSheet({

<SheetFooter className="absolute inset-x-0 bottom-0 border-t bg-white p-6">
<SheetClose asChild>
<Button variant="outline" type="button" disabled={isPending}>
<Button
className="mt-2 md:mt-0"
variant="outline"
type="button"
disabled={isPending}
>
{t("cancel")}
</Button>
</SheetClose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ const ScheduleTemplateEditor = ({
variant="outline"
onClick={() => deleteTemplate()}
disabled={isProcessing}
size="sm"
>
<Trash2Icon />
{isDeleting ? t("deleting") : t("delete")}
Expand Down

0 comments on commit 363ef98

Please sign in to comment.