diff --git a/react/src/components/BAIMenu.tsx b/react/src/components/BAIMenu.tsx index 36a96fa51..93cb407c0 100644 --- a/react/src/components/BAIMenu.tsx +++ b/react/src/components/BAIMenu.tsx @@ -33,6 +33,11 @@ const BAIMenu: React.FC = ({ ...props }) => { Menu: { itemBorderRadius: 20, itemMarginInline: 0, + colorPrimaryBorder: token.colorInfoHover, + itemHoverBg: token.colorInfoHover, + itemHoverColor: token.colorPrimaryBg, + itemSelectedBg: token.colorInfoHover, + itemSelectedColor: token.colorPrimaryBg, }, }, }} diff --git a/react/src/components/MainLayout/MainLayout.tsx b/react/src/components/MainLayout/MainLayout.tsx index de3c0ae97..ec3958f2a 100644 --- a/react/src/components/MainLayout/MainLayout.tsx +++ b/react/src/components/MainLayout/MainLayout.tsx @@ -11,7 +11,7 @@ import PasswordChangeRequestAlert from '../PasswordChangeRequestAlert'; import { DRAWER_WIDTH } from '../WEBUINotificationDrawer'; import WebUIHeader from './WebUIHeader'; import WebUISider from './WebUISider'; -import { App, Layout, theme } from 'antd'; +import { App, Layout, Space, theme } from 'antd'; import { atom, useSetAtom } from 'jotai'; import { Suspense, useEffect, useLayoutEffect, useRef, useState } from 'react'; import { useNavigate, Outlet } from 'react-router-dom'; @@ -135,8 +135,9 @@ function MainLayout() { } > - - { - if (broken) { - setSideCollapsed(true); - } else { - !compactSidebarActive && setSideCollapsed(false); - } - }} - webuiplugins={webUIPlugins} - /> - + { + if (broken) { + setSideCollapsed(true); + } else { + !compactSidebarActive && setSideCollapsed(false); + } + }} + webuiplugins={webUIPlugins} + /> {/* */} @@ -211,10 +210,10 @@ function MainLayout() { - {/* To match paddig to 16 (2+14) */} - {/* */} - {/* @ts-ignore */} - + + {/* @ts-ignore */} + + diff --git a/react/src/components/MainLayout/WebUISider.tsx b/react/src/components/MainLayout/WebUISider.tsx index 9e50a5ddc..b9c2a1f6d 100644 --- a/react/src/components/MainLayout/WebUISider.tsx +++ b/react/src/components/MainLayout/WebUISider.tsx @@ -78,12 +78,12 @@ const WebUISider: React.FC = (props) => { { label: 'Start', // t('webui.menu.Summary'), icon: , - key: 'start', // 'summary', + key: 'summary', // 'summary', }, { label: 'Dashboard', icon: , - key: 'summary', + key: 'dashboard', }, { key: 'storage', diff --git a/resources/theme.json b/resources/theme.json index cc46747c2..2aff1af8d 100644 --- a/resources/theme.json +++ b/resources/theme.json @@ -5,6 +5,7 @@ "fontFamily": "'Ubuntu', Roboto, sans-serif", "colorPrimaryBg": "#FF7A00", "colorFillContent": "#FF9D00", + "colorInfoHover": "#FFE3B7", "colorLink": "#FF9D00", "colorLinkHover": "#FF9D00", "colorSuccess": "#37B076",