From 0a68a189f21e852dc573b651447cd250ffefb152 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Tue, 10 Feb 2026 13:09:01 +0000 Subject: [PATCH] Revert "fixed header (#27794)" This reverts commit 6f6c27b47d0af53e2f5bc165cf3c745b537d8873. --- apps/web/modules/shell/Shell.tsx | 83 +++++++------------------------- 1 file changed, 17 insertions(+), 66 deletions(-) diff --git a/apps/web/modules/shell/Shell.tsx b/apps/web/modules/shell/Shell.tsx index 284722527a..eaf62deb40 100644 --- a/apps/web/modules/shell/Shell.tsx +++ b/apps/web/modules/shell/Shell.tsx @@ -42,18 +42,13 @@ const Layout = (props: LayoutProps) => {
- {banners && !props.isPlatformUser && ( - - )} + {banners && !props.isPlatformUser && }
{props.SidebarContainer ? ( cloneElement(props.SidebarContainer, { bannersHeight }) ) : ( - + )}
@@ -64,10 +59,7 @@ const Layout = (props: LayoutProps) => { ); }; -type DrawerState = [ - isOpen: boolean, - setDrawerOpen: Dispatch> -]; +type DrawerState = [isOpen: boolean, setDrawerOpen: Dispatch>]; export type LayoutProps = { centered?: boolean; @@ -98,13 +90,7 @@ export type LayoutProps = { disableSticky?: boolean; }; -const KBarWrapper = ({ - children, - withKBar = false, -}: { - withKBar: boolean; - children: React.ReactNode; -}) => +const KBarWrapper = ({ children, withKBar = false }: { withKBar: boolean; children: React.ReactNode }) => withKBar ? ( {children} @@ -156,19 +142,15 @@ export function ShellMain(props: LayoutProps) { className={classNames( "bg-default mb-0 flex items-center md:mb-6 md:mt-0", props.smallHeading ? "lg:mb-7" : "lg:mb-8", - !props.disableSticky && - "sticky top-0 z-10 md:fixed md:w-[calc(100%-3.5rem)] md:pt-3 md:pb-2 md:px-5 md:left-14 lg:left-56 lg:w-[calc(100%-14rem)]" - )} - > + !props.disableSticky && "sticky top-0 z-10 md:fixed md:w-[calc(100%-3.5rem)] md:pt-3 md:pb-2 md:pl-5 md:left-14 lg:left-56 lg:w-[calc(100%-14rem)]" + )}> {!!props.backPath && (
)} @@ -241,11 +200,7 @@ export function ShellMain(props: LayoutProps) {