diff --git a/scripts/generate_antd_dark_less.js b/scripts/generate_antd_dark_less.js index aa4468b34..a496fc89d 100644 --- a/scripts/generate_antd_dark_less.js +++ b/scripts/generate_antd_dark_less.js @@ -40,8 +40,8 @@ function saveLess(filePath, filename, callback) { 'border-color-split': 'rgb(57, 60, 77)', 'component-background': 'rgb(24 27 31)', //fc-fill-2 'table-header-bg': 'rgb(34 37 43)',//fc-fill-3 - 'table-row-hover-bg': '#303340', - 'table-header-sort-bg': '#303340', + 'table-row-hover-bg': 'rgba(204, 204, 220, 0.08)', + 'table-header-sort-bg': 'rgba(204, 204, 220, 0.08)', 'popover-background': 'rgb(24 27 31)', //fc-fill-2 'normal-color': 'rgb(79, 82, 99)', }, diff --git a/src/components/menu/SideMenu/MenuList.tsx b/src/components/menu/SideMenu/MenuList.tsx index 96312f296..d0ef286aa 100644 --- a/src/components/menu/SideMenu/MenuList.tsx +++ b/src/components/menu/SideMenu/MenuList.tsx @@ -73,10 +73,11 @@ function MenuItem(props: { item: IMenuItem; isSub?: boolean } & IMenuProps) { to={item.key} className={cn( 'group flex h-9 cursor-pointer items-center relative rounded px-3.5 transition-colors transition-spacing duration-75', - isActive ? (isCustomBg ? 'bg-gray-200/20' : 'bg-fc-200') : '', - isCustomBg ? 'hover:bg-gray-200/20' : 'hover:bg-fc-200', + isActive ? (isCustomBg ? '' : 'bg-fc-200') : '', + 'hover:bg-[rgba(204,204,220,0.12)]', isCustomBg ? 'text-[#fff]' : 'text-main', )} + style={{background: isActive && isCustomBg ?'rgba(204, 204, 220, 0.08)':undefined }} > {!isSub ? (