From 5da735c4181ab806a5b29008fa8752d0950b2125 Mon Sep 17 00:00:00 2001 From: Harsh Singh <51085015+harshsinghatz@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:54:09 +0530 Subject: [PATCH] /settings sidebar doesn't match figma designs fix (#4705) Co-authored-by: Guest Co-authored-by: root Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com> --- .../ui/v2/core/layouts/SettingsLayout.tsx | 26 ++++++++++--------- .../core/navigation/tabs/VerticalTabItem.tsx | 6 ++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/ui/v2/core/layouts/SettingsLayout.tsx b/packages/ui/v2/core/layouts/SettingsLayout.tsx index 6c2749cb6c..1f2f2d36c0 100644 --- a/packages/ui/v2/core/layouts/SettingsLayout.tsx +++ b/packages/ui/v2/core/layouts/SettingsLayout.tsx @@ -120,31 +120,33 @@ const SettingsSidebarContainer = ({ className = "" }) => {
{tabsWithPermissions.map((tab) => { return tab.name !== "teams" ? ( -
-
+
+
{tab && tab.icon && ( - + )} -

{t(tab.name)}

+

{t(tab.name)}

-
- {tab.children?.map((child) => ( +
+ {tab.children?.map((child, index) => ( ))} @@ -152,12 +154,12 @@ const SettingsSidebarContainer = ({ className = "" }) => { ) : ( -
-
+
+
{tab && tab.icon && ( - + )} -

{t(tab.name)}

+

{t(tab.name)}

{teams && teamMenuState && @@ -197,7 +199,7 @@ const SettingsSidebarContainer = ({ className = "" }) => {
{team.name

{team.name}

diff --git a/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx b/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx index 16cd2eaea9..7c5e0b9466 100644 --- a/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx +++ b/packages/ui/v2/core/navigation/tabs/VerticalTabItem.tsx @@ -50,14 +50,12 @@ const VerticalTabItem = function ({ "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-9" : "h-14", + !info ? "h-6" : "h-14", props.className )} data-testid={`vertical-tab-${name}`} aria-current={isCurrent ? "page" : undefined}> - {props.icon && ( - - )} + {props.icon && }
{t(name)}