Fixes to dialog for date override & dialog overflow fix (#6055)
* Fixes to dialog for date override & dialog overflow fix * Fixed datepicker border on mobile * removed max-height from dialog, needs testing Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
3b896bee5c
commit
1671095c94
3 files changed
+6
-5
No files matched your search
@@ -2,6 +2,7 @@ import { useState, useEffect, useMemo } from "react";
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
import dayjs, { Dayjs } from "@calcom/dayjs";
|
||||
import { classNames } from "@calcom/lib";
|
||||
import { daysInMonth, yyyymmdd } from "@calcom/lib/date-fns";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { WorkingHours } from "@calcom/types/schedule";
|
||||
@@ -113,8 +114,8 @@ const DateOverrideForm = ({
|
||||
);
|
||||
onClose();
|
||||
}}
|
||||
className="flex space-x-4">
|
||||
<div className="w-1/2 border-r pr-6">
|
||||
className="space-y-4 sm:flex sm:space-x-4">
|
||||
<div className={classNames(date && "w-full sm:border-r sm:pr-6")}>
|
||||
<DialogHeader title={t("date_overrides_dialog_title")} />
|
||||
<DatePicker
|
||||
includedDates={includedDates}
|
||||
@@ -130,7 +131,7 @@ const DateOverrideForm = ({
|
||||
/>
|
||||
</div>
|
||||
{date && (
|
||||
<div className="relative flex w-1/2 flex-col pl-2">
|
||||
<div className="relative flex w-full flex-col sm:pl-2">
|
||||
<div className="mb-4 flex-grow space-y-4">
|
||||
<p className="text-medium text-sm">{t("date_overrides_dialog_which_hours")}</p>
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user