From 8478363a23531dbf98936532f6a31db94a912c90 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 28 Sep 2022 18:56:59 +0100 Subject: [PATCH] minor layout fixes (#4741) * fixed back button, fixed app store detail on mobile * fixed settings padding and go back button * Update packages/ui/v2/core/Shell.tsx * Update packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx --- packages/ui/v2/core/Shell.tsx | 8 ++++++-- packages/ui/v2/core/layouts/SettingsLayout.tsx | 9 ++++----- packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsx index 1dbc38bda2..6e1682c0dc 100644 --- a/packages/ui/v2/core/Shell.tsx +++ b/packages/ui/v2/core/Shell.tsx @@ -766,7 +766,7 @@ export function ShellMain(props: LayoutProps) { {props.HeadingLeftIcon &&
{props.HeadingLeftIcon}
}
{props.heading && ( -

+

{!isLocaleReady ? : props.heading}

)} @@ -777,7 +777,11 @@ export function ShellMain(props: LayoutProps) { )}
{props.CTA && ( -
+
{props.CTA}
)} diff --git a/packages/ui/v2/core/layouts/SettingsLayout.tsx b/packages/ui/v2/core/layouts/SettingsLayout.tsx index 1f2f2d36c0..8a9eb258ca 100644 --- a/packages/ui/v2/core/layouts/SettingsLayout.tsx +++ b/packages/ui/v2/core/layouts/SettingsLayout.tsx @@ -118,13 +118,12 @@ const SettingsSidebarContainer = ({ className = "" }) => { aria-label="Tabs"> <>
-
+
history.back()}>
{tabsWithPermissions.map((tab) => { @@ -332,7 +331,7 @@ export default function SettingsLayout({ setSideContainerOpen(!sideContainerOpen)} /> }>
-
+
{children}
@@ -347,7 +346,7 @@ function ShellHeader() { const { meta } = useMeta(); const { t, isLocaleReady } = useLocale(); return ( -
+
{meta.backButton && ( diff --git a/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx b/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx index 7c5e0b9466..a7253da4ce 100644 --- a/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx +++ b/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx @@ -47,7 +47,7 @@ const VerticalTabItem = function ({ target={props.isExternalLink ? "_blank" : "_self"} className={classNames( props.textClassNames || "text-sm font-medium leading-none text-gray-600", - "group flex w-64 flex-row items-center rounded-md px-3 py-[10px] hover:bg-gray-100 group-hover:text-gray-700 [&[aria-current='page']]:bg-gray-200 [&[aria-current='page']]:text-gray-900", + "min-h-9 group flex w-64 flex-row items-center rounded-md px-3 py-[10px] hover:bg-gray-100 group-hover:text-gray-700 [&[aria-current='page']]:bg-gray-200 [&[aria-current='page']]:text-gray-900", props.disabled && "pointer-events-none !opacity-30", (isChild || !props.icon) && "ml-7 mr-5 w-auto", !info ? "h-6" : "h-14",