From 82c7e595ea688f91095dcad6fc5d4ad6057458f3 Mon Sep 17 00:00:00 2001 From: "Rajat.S" <39445342+rajats-dev@users.noreply.github.com> Date: Thu, 21 Mar 2024 19:41:12 +0530 Subject: [PATCH] fix: url input field overflows when update profile & editing event (#14033) * the url input field overflows * overflow text input changes * Update UsernameTextfield.tsx * Eslint error fix --------- Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> --- .../UsernameTextfield.tsx | 27 +++++++++++-------- .../ui/components/form/inputs/TextField.tsx | 11 +++++++- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx b/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx index 26d6234237..1dd6414859 100644 --- a/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx +++ b/apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx @@ -10,7 +10,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { TRPCClientErrorLike } from "@calcom/trpc/client"; import { trpc } from "@calcom/trpc/react"; import type { AppRouter } from "@calcom/trpc/server/routers/_app"; -import { Button, Dialog, DialogClose, DialogContent, TextField, DialogFooter } from "@calcom/ui"; +import { Button, Dialog, DialogClose, DialogContent, TextField, DialogFooter, Tooltip } from "@calcom/ui"; import { Check, Edit2 } from "@calcom/ui/components/icon"; interface ICustomUsernameProps { @@ -135,8 +135,8 @@ const UsernameTextfield = (props: ICustomUsernameProps & Partial {currentUsername !== inputUsernameValue && ( -
- +
+ {usernameIsAvailable ? : <>}
@@ -157,21 +157,26 @@ const UsernameTextfield = (props: ICustomUsernameProps & Partial
-
+

{t("current_username")}

-

- {currentUsername} -

+ +

+ {currentUsername} +

+

{t("new_username")}

- -

- {inputUsernameValue} -

+ +

+ {inputUsernameValue} +

+
diff --git a/packages/ui/components/form/inputs/TextField.tsx b/packages/ui/components/form/inputs/TextField.tsx index ef9baf5285..724f40b693 100644 --- a/packages/ui/components/form/inputs/TextField.tsx +++ b/packages/ui/components/form/inputs/TextField.tsx @@ -48,7 +48,16 @@ const Addon = ({ isFilled, children, className, error, onClickAddon }: AddonProp "min-h-9 flex flex-col justify-center text-sm leading-7", error ? "text-error" : "text-default" )}> - {children} + + {children} +
);