fix: sidenav style optimization

This commit is contained in:
shuai
2025-04-24 09:56:34 +08:00
parent 4bfcabdeb5
commit 42fb04283f
4 changed files with 4 additions and 22 deletions
+2 -1
View File
@@ -101,7 +101,8 @@
background-color: RGBA(255, 255, 255, var(--bs-bg-opacity, 1)) !important;
}
/** side nav **/
#sideNav {
#sideNav,
#answerAccordion {
.nav-link:hover,
.nav-link.active {
background-color: #2b3035 !important;
-17
View File
@@ -1,17 +0,0 @@
#sideNav {
max-width: 208px;
.nav-link {
color: var(--an-side-nav-link);
}
.nav-link:focus-visible {
box-shadow: none;
}
.nav-link:hover {
color: var(--an-side-nav-link-hover-color);
background-color: var(--bs-gray-100);
}
.nav-link.active {
color: var(--an-side-nav-link-hover-color);
background-color: var(--bs-gray-200);
}
}
-2
View File
@@ -9,8 +9,6 @@ import { ADMIN_NAV_MENUS } from '@/common/constants';
import { useQueryPlugins } from '@/services';
import { interfaceStore } from '@/stores';
import './index.scss';
const AdminSideNav = () => {
const { t } = useTranslation('translation', { keyPrefix: 'btns' });
const interfaceLang = interfaceStore((_) => _.interface.language);
+2 -2
View File
@@ -19,9 +19,9 @@
#pcSideNav {
width: 240px;
top: 62px;
top: 64px;
box-sizing: border-box;
height: calc(100vh - 62px);
height: calc(100vh - 64px);
overflow-y: auto;
flex: none;
}