Scheduling infrastructure for absolutely everyone.
fixed location input, date overwrite dialog (#7778)
Peer Richelsen19bc329377cf
diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsxindex 2f662f3df6b..dfb2b443ddf 100644--- a/apps/web/components/dialog/EditLocationDialog.tsx+++ b/apps/web/components/dialog/EditLocationDialog.tsx@@ -17,6 +17,7 @@ import {import { useLocale } from "@calcom/lib/hooks/useLocale";import type { RouterOutputs } from "@calcom/trpc/react";import { trpc } from "@calcom/trpc/react";+import { Input } from "@calcom/ui";import { Button, Dialog, DialogContent, DialogFooter, Form, PhoneInput } from "@calcom/ui";import { FiMapPin } from "@calcom/ui/components/icon";@@ -52,7 +53,7 @@ const LocationInput = (props: {const { control } = useFormContext() as typeof locationFormMethods;if (eventLocationType?.organizerInputType === "text") {return (- <input {...locationFormMethods.register(eventLocationType.variable)} type="text" {...remainingProps} />+ <Input {...locationFormMethods.register(eventLocationType.variable)} type="text" {...remainingProps} />);} else if (eventLocationType?.organizerInputType === "phone") {return (@@ -171,7 +172,6 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {id="locationInput"placeholder={t(eventLocationType.organizerInputPlaceholder || "")}required- className="block w-full rounded-sm border-gray-300 text-sm"// eslint-disable-next-line @typescript-eslint/no-non-null-assertiondefaultValue={defaultLocation ? defaultLocation[eventLocationType.defaultValueVariable] : undefineddiff --git a/apps/web/components/eventtype/EventSetupTab.tsx b/apps/web/components/eventtype/EventSetupTab.tsxindex c63efe92a08..3dc78075c9b 100644--- a/apps/web/components/eventtype/EventSetupTab.tsx+++ b/apps/web/components/eventtype/EventSetupTab.tsx@@ -198,8 +198,16 @@ export const EventSetupTab = (return (<li+ onClick={() => {+ locationFormMethods.setValue("locationType", location.type);+ locationFormMethods.unregister("locationLink");+ locationFormMethods.unregister("locationAddress");+ locationFormMethods.unregister("locationPhoneNumber");+ setEditingLocationType(location.type);+ openLocationModal(location.type);+ }}key={`${location.type}${index}`}- className="mb-2 rounded-md border border-gray-300 py-1.5 px-2">+ className="mb-2 rounded-md border border-gray-300 py-1.5 px-2 hover:cursor-pointer"><div className="flex items-center justify-between"><div className="flex items-center"><imgdiff --git a/apps/web/pages/availability/[schedule].tsx b/apps/web/pages/availability/[schedule].tsxindex 3387bd48b89..8ba0d7f3376 100644--- a/apps/web/pages/availability/[schedule].tsx+++ b/apps/web/pages/availability/[schedule].tsx@@ -223,7 +223,7 @@ export default function Availability() {</Button></div>}>- <div className="w-full">+ <div className="mt-4 w-full md:mt-0"><Formform={form}id="availability-form"diff --git a/packages/features/schedules/components/DateOverrideInputDialog.tsx b/packages/features/schedules/components/DateOverrideInputDialog.tsxindex a54a4092ba0..cf7195343b3 100644--- a/packages/features/schedules/components/DateOverrideInputDialog.tsx+++ b/packages/features/schedules/components/DateOverrideInputDialog.tsx@@ -116,8 +116,8 @@ const DateOverrideForm = ({);onClose();}}- className="space-y-4 sm:flex sm:space-x-4">- <div className={classNames(date && "w-full sm:border-r sm:pr-6")}>+ className="p-6 sm:flex sm:p-0">+ <div className={classNames(date && "w-full sm:border-r sm:pr-6", "sm:p-4 md:p-8")}><DialogHeader title={t("date_overrides_dialog_title")} /><DatePickerincludedDates={includedDates}@@ -133,7 +133,7 @@ const DateOverrideForm = ({/></div>{date && (- <div className="relative flex w-full flex-col sm:pl-2">+ <div className="relative mt-8 flex w-full flex-col sm:mt-0 sm:p-4 md:p-8"><div className="mb-4 flex-grow space-y-4"><p className="text-medium text-sm">{t("date_overrides_dialog_which_hours")}</p><div>@@ -150,7 +150,7 @@ const DateOverrideForm = ({data-testid="date-override-mark-unavailable"/></div>- <div className="flex flex-row-reverse">+ <div className="mt-4 flex flex-row-reverse sm:mt-0"><ButtonclassName="ml-2"color="primary"@@ -190,7 +190,7 @@ const DateOverrideInputDialog = ({<Dialog open={open} onOpenChange={setOpen}><DialogTrigger asChild>{Trigger}</DialogTrigger>- <DialogContent enableOverflow={enableOverflow} size="md">+ <DialogContent enableOverflow={enableOverflow} size="md" className="p-0"><DateOverrideFormexcludedDates={excludedDates}{...passThroughProps}