From 7b03827d3a453cb42bd17dc6b17204b9f9a61087 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Mon, 28 Jul 2025 08:34:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Layout):=20=E4=BC=98=E5=8C=96=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E7=BB=84=E4=BB=B6=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 WindowDragHandle 组件 - 调整了 NavigateLink 组件的样式 - 重构了 Layout 组件的 header,添加了搜索框和按钮 - 优化了内容区域的样式 --- src/Layout.tsx | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/Layout.tsx b/src/Layout.tsx index fae8e2c..252ebfa 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -1,15 +1,6 @@ import { Icon } from '@iconify-icon/solid'; import { A } from '@solidjs/router'; -import { Component, ParentComponent } from 'solid-js'; -import { Portal } from 'solid-js/web'; - -const WindowDragHandle: Component = () => { - return ( - -
- - ); -}; +import { ParentComponent } from 'solid-js'; interface NavigationLinkProps { href: string; @@ -20,7 +11,7 @@ const NavigateLink: ParentComponent = (props) => {
{props.children}
@@ -30,9 +21,15 @@ const NavigateLink: ParentComponent = (props) => { const Layout: ParentComponent = (props) => { return (
-
+
ComfyUI Resources
+
+ + +
-
{props.children}
+
{props.children}
-
); };