Skip to content

Scheduling infrastructure for absolutely everyone.

fix: align page headers by removing py-2 padding from ShellMain (#26084)

Peer Richelsen192d92723235
diff --git a/apps/web/app/(use-page-wrapper)/insights/layout.tsx b/apps/web/app/(use-page-wrapper)/insights/layout.tsx
index 056397f7546..6eea6cf4220 100644
--- a/apps/web/app/(use-page-wrapper)/insights/layout.tsx
+++ b/apps/web/app/(use-page-wrapper)/insights/layout.tsx
@@ -1,3 +1,4 @@
+import { ShellMainAppDir } from "app/(use-page-wrapper)/(main-nav)/ShellMainAppDir";
import { getTranslate } from "app/_utils";
import { CTA_CONTAINER_CLASS_NAME } from "@calcom/features/data-table/lib/utils";
@@ -9,14 +10,13 @@ export default async function InsightsLayout({ children }: { children: React.Rea
const t = await getTranslate();
return (
- <div>
- <Shell
- withoutMain={false}
+ <Shell withoutMain={true}>
+ <ShellMainAppDir
heading={t("insights")}
subtitle={t("insights_subtitle")}
- actions={<div className={`mb-2 flex items-center gap-2 ${CTA_CONTAINER_CLASS_NAME}`} />}>
+ actions={<div className={`flex items-center gap-2 ${CTA_CONTAINER_CLASS_NAME}`} />}>
<UpgradeTipWrapper>{children}</UpgradeTipWrapper>
- </Shell>
- </div>
+ </ShellMainAppDir>
+ </Shell>
);
}
diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx
index f05a62ea1cd..345c4eb1187 100644
--- a/packages/features/shell/Shell.tsx
+++ b/packages/features/shell/Shell.tsx
@@ -130,7 +130,7 @@ export function ShellMain(props: LayoutProps) {
{(props.heading || !!props.backPath) && (
<div
className={classNames(
- "bg-default sticky top-0 z-10 mb-0 flex items-center py-2 md:mb-6 md:mt-0",
+ "bg-default sticky top-0 z-10 mb-0 flex items-center md:mb-6 md:mt-0",
props.smallHeading ? "lg:mb-7" : "lg:mb-8"
)}>
{!!props.backPath && (