diff --git a/apps/web/modules/shell/Shell.tsx b/apps/web/modules/shell/Shell.tsx index eaf62deb40..284722527a 100644 --- a/apps/web/modules/shell/Shell.tsx +++ b/apps/web/modules/shell/Shell.tsx @@ -42,13 +42,18 @@ const Layout = (props: LayoutProps) => {
- {banners && !props.isPlatformUser && } + {banners && !props.isPlatformUser && ( + + )}
{props.SidebarContainer ? ( cloneElement(props.SidebarContainer, { bannersHeight }) ) : ( - + )}
@@ -59,7 +64,10 @@ const Layout = (props: LayoutProps) => { ); }; -type DrawerState = [isOpen: boolean, setDrawerOpen: Dispatch>]; +type DrawerState = [ + isOpen: boolean, + setDrawerOpen: Dispatch> +]; export type LayoutProps = { centered?: boolean; @@ -90,7 +98,13 @@ 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} @@ -142,15 +156,19 @@ 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:pl-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:px-5 md:left-14 lg:left-56 lg:w-[calc(100%-14rem)]" + )} + > {!!props.backPath && (
)} @@ -200,7 +241,11 @@ export function ShellMain(props: LayoutProps) {