fix: tanstack getRight error, focus in user impersonation, missing space after input fields, border in my-profile email (#19350)

* fix: shadow after email and before the primary label

* fix: autofill input shadow in impersonation view

* fix: improve spacing and layout in EditUserForm

* fix: error due to getRight

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
amritandPeer Richelsen authored and GitHub committed 2025-02-19 13:23:11 +05:30
1 parent 25f3368fa1
commit d3f1dc1b32
4 files changed
+10 -13

No files matched your search

@@ -4,7 +4,6 @@ import type { UseFormReturn } from "react-hook-form";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import {
Badge,
TextField,
Dropdown,
DropdownItem,
DropdownMenuContent,
@@ -48,11 +47,9 @@ const CustomEmailTextField = ({
className={`border-default mt-2 flex w-full items-center rounded-[10px] border ${
inputFocus ? "ring-brand-default border-neutral-300 ring-2" : ""
}`}>
<TextField
<input
{...formMethods.register(formMethodFieldName)}
label=""
containerClassName="flex flex-1 items-center"
className="mb-0 border-none outline-none focus:ring-0"
className="flex-1 bg-transparent px-3 py-1 text-sm outline-none"
data-testid={dataTestId}
onFocus={() => setInputFocus(true)}
onBlur={() => setInputFocus(false)}
@@ -38,7 +38,7 @@ const ImpersonationView = () => {
}}>
<div className="flex items-center space-x-2 rtl:space-x-reverse">
<TextField
containerClassName="w-full"
containerClassName="w-full [&_input:-webkit-autofill]:!shadow-[0_0_0_1000px_white_inset]"
name={t("user_impersonation_heading")}
addOnLeading={<>{process.env.NEXT_PUBLIC_WEBSITE_URL}/</>}
ref={usernameRef}