Skip to content

Scheduling infrastructure for absolutely everyone.

[CAL-807] /event-types/single - Fix the header (#6738)

GitStart-Cal.com9ab5a3149c36
diff --git a/apps/web/components/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
index da412ca8a35..55dc0046183 100644
--- a/apps/web/components/eventtype/EventTypeSingleLayout.tsx
+++ b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
@@ -323,7 +323,7 @@ function EventTypeSingleLayout({
</div>
}>
<Suspense fallback={<FiLoader />}>
- <div className="-mt-2 flex flex-col xl:flex-row xl:space-x-8">
+ <div className="flex flex-col xl:flex-row xl:space-x-6">
<div className="hidden xl:block">
<VerticalTabs
className="primary-navigation"
diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx
index c72446e477b..7eb7e6e8515 100644
--- a/packages/features/shell/Shell.tsx
+++ b/packages/features/shell/Shell.tsx
@@ -783,37 +783,33 @@ export function ShellMain(props: LayoutProps) {
return (
<>
<div
- className={classNames("mb-6 flex items-center sm:mt-0", props.smallHeading ? "lg:mb-7" : "lg:mb-10")}>
+ className={classNames("mb-6 flex items-center sm:mt-0", props.smallHeading ? "lg:mb-7" : "lg:mb-8")}>
{!!props.backPath && (
<Button
variant="icon"
+ size="sm"
color="minimal"
onClick={() =>
typeof props.backPath === "string" ? router.push(props.backPath as string) : router.back()
}
StartIcon={FiArrowLeft}
aria-label="Go Back"
- className="mt-1 ltr:mr-2 rtl:ml-2"
+ className="rounded-md ltr:mr-2 rtl:ml-2"
/>
)}
{props.heading && (
- <header className={classNames(props.large && "py-8", "flex w-full max-w-full")}>
+ <header className={classNames(props.large && "py-8", "flex w-full max-w-full items-center")}>
{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}
<div className={classNames("w-full ltr:mr-4 rtl:ml-4 sm:block", props.headerClassName)}>
{props.heading && (
<h1
className={classNames(
- "font-cal max-w-28 sm:max-w-72 md:max-w-80 mt-1 hidden truncate font-semibold tracking-wide text-black sm:block xl:max-w-full",
- props.smallHeading ? "text-base" : "text-2xl"
+ "font-cal max-w-28 sm:max-w-72 md:max-w-80 mt-1 hidden truncate text-xl font-semibold tracking-wide text-black sm:block xl:max-w-full",
+ props.smallHeading ? "text-base" : "text-xl"
)}>
{!isLocaleReady ? <SkeletonText invisible /> : props.heading}
</h1>
)}
- {props.subtitle && (
- <p className="hidden text-sm text-gray-500 sm:block">
- {!isLocaleReady ? <SkeletonText invisible /> : props.subtitle}
- </p>
- )}
</div>
{props.CTA && (
<div