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(Admin): Set the default form width for `admin` pages to 6 columns

haitaoo38226bf3a0ba
diff --git a/ui/src/pages/Admin/index.tsx b/ui/src/pages/Admin/index.tsx
index 03f2af3b..8e59bbda 100644
--- a/ui/src/pages/Admin/index.tsx
+++ b/ui/src/pages/Admin/index.tsx
@@ -13,19 +13,14 @@ import { interfaceStore } from '@/stores';
import './index.scss';
-const formPaths = [
- 'general',
- 'smtp',
- 'interface',
- 'branding',
- 'legal',
- 'write',
- 'seo',
- 'themes',
- 'css-html',
- 'github_connector',
+const g10Paths = [
+ 'dashboard',
+ 'questions',
+ 'answers',
+ 'users',
+ 'flags',
+ 'installed_plugins',
];
-
const Index: FC = () => {
const { t } = useTranslation('translation', { keyPrefix: 'page_title' });
const { pathname } = useLocation();
@@ -83,7 +78,7 @@ const Index: FC = () => {
<Col lg={2}>
<AccordionNav menus={menus} path="/admin/" />
</Col>
- <Col lg={formPaths.find((v) => pathname.includes(v)) ? 6 : 10}>
+ <Col lg={g10Paths.find((v) => pathname.includes(v)) ? 10 : 6}>
<Outlet />
</Col>
</Row>