From f9d639b1575a3c77230e1ff21587fb2843332929 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 6 Sep 2022 19:05:16 +0200 Subject: [PATCH] fixed app bar on mobile (#4209) --- packages/ui/v2/core/Shell.tsx | 30 +++++++++++-------- .../modules/event-types/CreateEventType.tsx | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsx index 9ff4279e58..8eb538ec7b 100644 --- a/packages/ui/v2/core/Shell.tsx +++ b/packages/ui/v2/core/Shell.tsx @@ -654,7 +654,7 @@ export function ShellMain(props: LayoutProps) { /> )} {props.heading && ( -
+
{props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
}
{props.heading && ( @@ -663,7 +663,9 @@ export function ShellMain(props: LayoutProps) { )} {props.subtitle && ( -

{!isLocaleReady ? null : props.subtitle}

+

+ {!isLocaleReady ? null : props.subtitle} +

)}
{props.CTA &&
{props.CTA}
} @@ -679,15 +681,17 @@ export function ShellMain(props: LayoutProps) { function MainContainer(props: LayoutProps) { return ( -
+
{/* show top navigation for md and smaller (tablet and phones) */} - - {!props.withoutMain ? {props.children} : props.children} - - {/* show bottom navigation for md and smaller (tablet and phones) */} - - +
+ + {!props.withoutMain ? {props.children} : props.children} + + {/* show bottom navigation for md and smaller (tablet and phones) */} + + {/* */} +
); } @@ -704,21 +708,21 @@ function TopNav() { return (