From 2d9a3bd7418f44db26b2fe2b04b6864ec91ffcb0 Mon Sep 17 00:00:00 2001 From: amrit Date: Tue, 18 Feb 2025 20:53:40 +0530 Subject: [PATCH] fix: EditLocationDialog footer positioning and structure (#19335) * fix: EditLocationDialog footer positioning and structure * fix: make RescheduleDialog footer layout and button structure right * fix: input dialogue glitch now works great * made tests happy --------- Co-authored-by: Peer Richelsen --- .../web/components/dialog/AddGuestsDialog.tsx | 47 ++++++++++--------- .../components/dialog/EditLocationDialog.tsx | 3 +- .../components/dialog/RescheduleDialog.tsx | 34 +++++++------- packages/ui/form/MultiEmail.tsx | 2 +- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/apps/web/components/dialog/AddGuestsDialog.tsx b/apps/web/components/dialog/AddGuestsDialog.tsx index 592b32c886..c8077f9aa6 100644 --- a/apps/web/components/dialog/AddGuestsDialog.tsx +++ b/apps/web/components/dialog/AddGuestsDialog.tsx @@ -61,17 +61,19 @@ export const AddGuestsDialog = (props: IAddGuestsDialog) => {
-
+
- +
+ +
{isInvalidEmail && (
@@ -83,24 +85,23 @@ export const AddGuestsDialog = (props: IAddGuestsDialog) => {
)} - - - - -
+ + + +
); diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index 6272e4c0a1..c0c0b2bfae 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -324,7 +324,7 @@ export const EditLocationDialog = (props: ISetLocationDialog) => { }} /> {selectedLocation && SelectedLocationInput} - + - diff --git a/apps/web/components/dialog/RescheduleDialog.tsx b/apps/web/components/dialog/RescheduleDialog.tsx index 42ea9d7806..8e8d93d0a7 100644 --- a/apps/web/components/dialog/RescheduleDialog.tsx +++ b/apps/web/components/dialog/RescheduleDialog.tsx @@ -6,7 +6,6 @@ import { trpc } from "@calcom/trpc/react"; import { Button, Dialog, - DialogClose, DialogContent, DialogFooter, DialogHeader, @@ -46,7 +45,7 @@ export const RescheduleDialog = (props: IRescheduleDialog) => {
-
+

{t("reschedule_modal_description")}

@@ -60,23 +59,24 @@ export const RescheduleDialog = (props: IRescheduleDialog) => { onChange={(e) => setRescheduleReason(e.target.value)} className="mb-5 sm:mb-6" /> - - - - -

+ + + + ); diff --git a/packages/ui/form/MultiEmail.tsx b/packages/ui/form/MultiEmail.tsx index 3528397347..69c32b23e6 100644 --- a/packages/ui/form/MultiEmail.tsx +++ b/packages/ui/form/MultiEmail.tsx @@ -17,7 +17,7 @@ function MultiEmail({ value, readOnly, label, setValue, placeholder }: MultiEmai const { t } = useLocale(); value = value || []; const inputClassName = - "dark:placeholder:text-muted focus:border-emphasis border-subtle block w-full rounded-md border-default text-sm focus:ring-black disabled:bg-emphasis disabled:hover:cursor-not-allowed dark:selection:bg-green-500 disabled:dark:text-subtle bg-default"; + "dark:placeholder:text-muted focus:border-emphasis border-subtle block w-full rounded-md border-default text-sm focus:ring-black disabled:bg-emphasis disabled:hover:cursor-not-allowed dark:selection:bg-green-500 disabled:dark:text-subtle"; return ( <> {value.length ? (