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

* fix: align insights header with other pages by using ShellMainAppDir

Co-Authored-By: [email protected] <[email protected]>

* fix: remove py-2 padding from ShellMain to align with ShellMainAppDir

Co-Authored-By: [email protected] <[email protected]>

* address cubics comment - keep sticky bg, only remove padding

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Dhairyashil <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-12-22 09:31:56 +00:00
1 parent f9ff3248e5
commit 192d927232
2 files changed
+7 -7

No files matched your search

@@ -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>
);
}