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 : Date field overflow in exception form in mobile view #10112

Merged
merged 4 commits into from
Jan 24, 2025
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
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
Loading