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) {