diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.module.css b/web/src/app/home/components/home-sidebar/HomeSidebar.module.css index 65fadc80..7c006cc2 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.module.css +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.module.css @@ -35,17 +35,19 @@ .sidebarChildContainer { - box-sizing: border-box; - width: 160px; - height: 48px; - margin: 12px 0; - font-size: 16px; + width: 10rem; + height: 3rem; + margin: 0.8rem 0; + padding-left: 2rem; + font-size: 1rem; background-color: #fff; border-radius: 12px; display: flex; flex-direction: row; align-items: center; + justify-content: flex-start; cursor: pointer; + gap: 0.5rem; } .sidebarSelected { @@ -60,9 +62,7 @@ } .sidebarChildIcon { - width: 28px; - height: 28px; - margin-left: 16px; - margin-right: 6px; + width: 20px; + height: 20px; background-color: rgba(96, 149, 209, 0); } \ No newline at end of file diff --git a/web/src/app/home/components/home-sidebar/HomeSidebarChild.tsx b/web/src/app/home/components/home-sidebar/HomeSidebarChild.tsx index 2451e82b..f43c3570 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebarChild.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebarChild.tsx @@ -2,14 +2,14 @@ import styles from './HomeSidebar.module.css'; export interface ISidebarChildVO { id: string; - icon: string; + icon: React.ReactNode; name: string; route: string; } export class SidebarChildVO { id: string; - icon: string; + icon: React.ReactNode; name: string; route: string; @@ -26,7 +26,7 @@ export function SidebarChild({ name, isSelected, }: { - icon: string; + icon: React.ReactNode; name: string; isSelected: boolean; }) { @@ -34,11 +34,12 @@ export function SidebarChild({
-
-
+
{icon} - {name}
+ + {name} +
); } diff --git a/web/src/app/home/components/home-sidebar/sidbarConfigList.ts b/web/src/app/home/components/home-sidebar/sidbarConfigList.ts deleted file mode 100644 index 518d4f14..00000000 --- a/web/src/app/home/components/home-sidebar/sidbarConfigList.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { SidebarChildVO } from '@/app/home/components/home-sidebar/HomeSidebarChild'; - -export const sidebarConfigList = [ - new SidebarChildVO({ - id: 'models', - name: '模型配置', - icon: '', - route: '/home/models', - }), - new SidebarChildVO({ - id: 'bots', - name: '机器人', - icon: '', - route: '/home/bots', - }), - new SidebarChildVO({ - id: 'pipelines', - name: '流水线', - icon: '', - route: '/home/pipelines', - }), - new SidebarChildVO({ - id: 'plugins', - name: '插件管理', - icon: '', - route: '/home/plugins', - }), -]; diff --git a/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx b/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx new file mode 100644 index 00000000..86af4f47 --- /dev/null +++ b/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx @@ -0,0 +1,29 @@ +import { SidebarChildVO } from '@/app/home/components/home-sidebar/HomeSidebarChild'; +import styles from './HomeSidebar.module.css'; + +export const sidebarConfigList = [ + new SidebarChildVO({ + id: 'models', + name: '模型配置', + icon: , + route: '/home/models', + }), + new SidebarChildVO({ + id: 'bots', + name: '机器人', + icon: , + route: '/home/bots', + }), + new SidebarChildVO({ + id: 'pipelines', + name: '流水线', + icon: , + route: '/home/pipelines', + }), + new SidebarChildVO({ + id: 'plugins', + name: '插件管理', + icon: , + route: '/home/plugins', + }), +]; diff --git a/web/src/app/home/models/component/llm-card/LLMCard.module.css b/web/src/app/home/models/component/llm-card/LLMCard.module.css index 54c21575..e8a5d75f 100644 --- a/web/src/app/home/models/component/llm-card/LLMCard.module.css +++ b/web/src/app/home/models/component/llm-card/LLMCard.module.css @@ -87,20 +87,20 @@ align-items: center; justify-content: flex-start; gap: 0.2rem; - height: 1.6rem; + height: 1.5rem; padding: 0.5rem; border-radius: 0.8rem; background-color: #66baff80; } .abilityIcon { - width: 1.2rem; - height: 1.2rem; + width: 1rem; + height: 1rem; color: #2288ee; } .abilityLabel { - font-size: 1rem; - font-weight: 300; + font-size: 0.8rem; + font-weight: 400; color: #2288ee; } \ No newline at end of file