Skip to content

Commit db9b9c4

Browse files
ddoemonnkart1ka
andauthored
fix(event-types): remove gap in URL input for event creation (calcom#22123)
* fix(event-types): remove gap in URL input for event creation * fix: event setup tab spacing * fix: space in profile view --------- Co-authored-by: Kartik Saini <41051387+kart1ka@users.noreply.github.com>
1 parent 37f5005 commit db9b9c4

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ const UsernameTextfield = (props: ICustomUsernameProps & Partial<React.Component
124124
autoComplete="none"
125125
autoCapitalize="none"
126126
autoCorrect="none"
127+
containerClassName="[&>div]:gap-0"
127128
className={classNames(
128-
"mb-0 mt-0 rounded-md rounded-l-none",
129+
"mb-0 mt-0 rounded-md rounded-l-none pl-0",
129130
markAsError
130131
? "focus:shadow-0 focus:ring-shadow-0 border-red-500 focus:border-red-500 focus:outline-none focus:ring-0"
131132
: ""

packages/features/eventtypes/components/CreateEventTypeForm.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ export default function CreateEventTypeForm({
6666
!isPlatform ? (
6767
<Tooltip content={!isManagedEventType ? pageSlug : t("username_placeholder")}>
6868
<span className="max-w-24 md:max-w-56">
69-
/{!isManagedEventType ? pageSlug : t("username_placeholder")}/
69+
{`/${!isManagedEventType ? pageSlug : t("username_placeholder")}/`}
7070
</span>
7171
</Tooltip>
7272
) : undefined
7373
}
74+
containerClassName="[&>div]:gap-0"
75+
className="pl-0"
7476
{...register("slug")}
7577
onChange={(e) => {
7678
form.setValue("slug", slugify(e?.target.value), { shouldTouch: true });
@@ -91,11 +93,13 @@ export default function CreateEventTypeForm({
9193
<Tooltip
9294
content={`${urlPrefix}/${!isManagedEventType ? pageSlug : t("username_placeholder")}/`}>
9395
<span className="max-w-24 md:max-w-56">
94-
{urlPrefix}/{!isManagedEventType ? pageSlug : t("username_placeholder")}/
96+
{`${urlPrefix}/${!isManagedEventType ? pageSlug : t("username_placeholder")}/`}
9597
</span>
9698
</Tooltip>
9799
) : undefined
98100
}
101+
containerClassName="[&>div]:gap-0"
102+
className="pl-0"
99103
{...register("slug")}
100104
onChange={(e) => {
101105
form.setValue("slug", slugify(e?.target.value), { shouldTouch: true });

packages/features/eventtypes/components/tabs/setup/EventSetupTab.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,12 @@ export const EventSetupTab = (
208208
{...(isManagedEventType || isChildrenManagedEventType ? urlLockedProps : {})}
209209
defaultValue={eventType.slug}
210210
data-testid="event-slug"
211-
containerClassName={classNames(customClassNames?.titleSection?.urlInput?.container)}
211+
containerClassName={classNames(
212+
"[&>div]:gap-0",
213+
customClassNames?.titleSection?.urlInput?.container
214+
)}
212215
labelClassName={classNames(customClassNames?.titleSection?.urlInput?.label)}
213-
className={classNames(customClassNames?.titleSection?.urlInput?.input)}
216+
className={classNames("pl-0", customClassNames?.titleSection?.urlInput?.input)}
214217
addOnLeading={
215218
isPlatform ? undefined : (
216219
<>

0 commit comments

Comments
 (0)