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: peer@cal.com <peer@cal.com> * fix: remove py-2 padding from ShellMain to align with ShellMainAppDir Co-Authored-By: peer@cal.com <peer@cal.com> * 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 <dhairyashil10101010@gmail.com>
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
@@ -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 && (
|
||||
|
||||
Reference in new issue
Block a user