From d9dd15bd058f214c0cbf9562d564d8e90072c6c5 Mon Sep 17 00:00:00 2001 From: ReaJason Date: Wed, 3 Sep 2025 20:08:42 +0800 Subject: [PATCH] fix(ui): use shellTool selector --- .../components/memshell/main-config-card.tsx | 41 +++++++++++-------- web/src/index.css | 6 +++ web/src/pages/memshell.tsx | 4 +- web/src/pages/probeshell.tsx | 4 +- 4 files changed, 35 insertions(+), 20 deletions(-) diff --git a/web/src/components/memshell/main-config-card.tsx b/web/src/components/memshell/main-config-card.tsx index 1b717226..916c56b7 100644 --- a/web/src/components/memshell/main-config-card.tsx +++ b/web/src/components/memshell/main-config-card.tsx @@ -393,22 +393,31 @@ export default function MainConfigCard({ }} className="w-full" > -
- - {shellTools.map((shellTool) => ( - - - {shellToolIcons[shellTool]} - {shellTool} - - - ))} - -
+ ( + + + + )} + /> diff --git a/web/src/index.css b/web/src/index.css index 3c9dbc24..4b8ddd14 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -160,6 +160,12 @@ body { @apply bg-background text-foreground; } + + html, body { + overflow: hidden; + height: 100%; + margin: 0; + } } .tabs-list { diff --git a/web/src/pages/memshell.tsx b/web/src/pages/memshell.tsx index 8cc85247..765e8c6c 100644 --- a/web/src/pages/memshell.tsx +++ b/web/src/pages/memshell.tsx @@ -129,7 +129,7 @@ export default function MemShellPage() { onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col xl:flex-row gap-6" > -
+
-
+
-
+
-
+