Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: sidenav style optimization

shuai42fb04283f20
diff --git a/ui/src/common/color.scss b/ui/src/common/color.scss
index 9970ab78..1ded9c42 100644
--- a/ui/src/common/color.scss
+++ b/ui/src/common/color.scss
@@ -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;
diff --git a/ui/src/components/AdminSideNav/index.scss b/ui/src/components/AdminSideNav/index.scss
deleted file mode 100644
index 980ffdc9..00000000
--- a/ui/src/components/AdminSideNav/index.scss
+++ /dev/null
@@ -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);
- }
-}
diff --git a/ui/src/components/AdminSideNav/index.tsx b/ui/src/components/AdminSideNav/index.tsx
index 801a1f16..770189b4 100644
--- a/ui/src/components/AdminSideNav/index.tsx
+++ b/ui/src/components/AdminSideNav/index.tsx
@@ -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);
diff --git a/ui/src/components/SideNav/index.scss b/ui/src/components/SideNav/index.scss
index 0f386561..27894d77 100644
--- a/ui/src/components/SideNav/index.scss
+++ b/ui/src/components/SideNav/index.scss
@@ -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;
}