From 0e3163be178988ec2baeb394c903dd4a6df6d1b1 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Mon, 4 Aug 2025 22:44:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(Layout):=20=E9=87=8D=E6=9E=84=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E7=BB=84=E4=BB=B6=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除侧边导航栏,将导航链接移至头部 - 更新导航链接样式和布局 - 添加平台检测以调整头部样式 - 优化页面结构,提高用户体验 --- src/Layout.tsx | 73 +++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/src/Layout.tsx b/src/Layout.tsx index 252ebfa..8d1c3df 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -1,61 +1,60 @@ import { Icon } from '@iconify-icon/solid'; import { A } from '@solidjs/router'; +import { platform } from '@tauri-apps/plugin-os'; import { ParentComponent } from 'solid-js'; interface NavigationLinkProps { href: string; + end: boolean; } const NavigateLink: ParentComponent = (props) => { return ( -
{props.children}
+ end={props.end} + class="hover:text-primary-hover h-8 px-4 py-2 flex flex-row justify-center items-center gap-2" + activeClass="text-primary-focus bg-shadow/45" + inactiveClass="text-on-surface bg-transparent"> + {props.children}
); }; +const os = platform(); + const Layout: ParentComponent = (props) => { return (
-
- ComfyUI Resources -
-
- - +
+ + + Models + + + + Browse + + + + Download + + + + Prompt + + + + Settings + +
+
-
- -
{props.children}
-
+
{props.children}
); };