From a5ba7aadb30ad1cf11a33e2359ee6160260d298a Mon Sep 17 00:00:00 2001 From: Leshe4ka Date: Fri, 30 May 2025 23:44:09 +0500 Subject: [PATCH] multiple cluster menu selected item fix --- .../Nav/ClusterMenu/ClusterMenu.tsx | 22 +++++++------------ frontend/src/components/Nav/Nav.styled.ts | 4 ++-- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Nav/ClusterMenu/ClusterMenu.tsx b/frontend/src/components/Nav/ClusterMenu/ClusterMenu.tsx index f6062402f..60f78a33f 100644 --- a/frontend/src/components/Nav/ClusterMenu/ClusterMenu.tsx +++ b/frontend/src/components/Nav/ClusterMenu/ClusterMenu.tsx @@ -5,19 +5,13 @@ import MenuTab from 'components/Nav/Menu/MenuTab'; import MenuItem from 'components/Nav/Menu/MenuItem'; import { clusterACLPath, - clusterAclRelativePath, - clusterBrokerRelativePath, + clusterBrokerPath, clusterBrokersPath, clusterConnectorsPath, - clusterConnectorsRelativePath, clusterConsumerGroupsPath, - clusterConsumerGroupsRelativePath, clusterKsqlDbPath, - clusterKsqlDbRelativePath, clusterSchemasPath, - clusterSchemasRelativePath, clusterTopicsPath, - clusterTopicsRelativePath, } from 'lib/paths'; import { useLocation } from 'react-router-dom'; import { useLocalStorage } from 'lib/hooks/useLocalStorage'; @@ -60,37 +54,37 @@ const ClusterMenu: FC = ({ {isOpen && ( {hasFeatureConfigured(ClusterFeaturesEnum.SCHEMA_REGISTRY) && ( )} {hasFeatureConfigured(ClusterFeaturesEnum.KAFKA_CONNECT) && ( )} {hasFeatureConfigured(ClusterFeaturesEnum.KSQL_DB) && ( @@ -98,7 +92,7 @@ const ClusterMenu: FC = ({ {(hasFeatureConfigured(ClusterFeaturesEnum.KAFKA_ACL_VIEW) || hasFeatureConfigured(ClusterFeaturesEnum.KAFKA_ACL_EDIT)) && ( diff --git a/frontend/src/components/Nav/Nav.styled.ts b/frontend/src/components/Nav/Nav.styled.ts index 822d68970..3f5e62ec4 100644 --- a/frontend/src/components/Nav/Nav.styled.ts +++ b/frontend/src/components/Nav/Nav.styled.ts @@ -15,8 +15,8 @@ export const ClusterList = styled.ul.attrs<{ $colorKey: ClusterColorKey }>({ role: 'menu', })` border-radius: 8px; - padding: 4px 4px 4px 4px; - margin-bottom: -8px; + padding: 2px 4px; + margin-bottom: 2px; background-color: ${({ theme, $colorKey }) => theme.clusterMenu.backgroundColor[$colorKey]}; `;