[CAL-807] /event-types/single - Fix the header (#6738)
release.yml / release (push) Canceled after 0s

* [CAL-807] /event-types/single - Fix the header

* [CAL-807] /event-types/single - Fix the header

* [CAL-807] /event-types/single - Fix the header

---------

Co-authored-by: gitstart-calcom <gitstart@users.noreply.github.com>
This commit is contained in:
GitStart-Cal.comandgitstart-calcom authored and GitHub committed 2023-01-31 20:19:02 +00:00
1 parent 3b8f436bdf
commit 9ab5a3149c
2 files changed
+7 -11

No files matched your search

@@ -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"
+6 -10
View File
@@ -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