From db25ba2cbec4db35fcd98fd0213cd8cc1114dc02 Mon Sep 17 00:00:00 2001 From: sagit <36596628+Sagit-chu@users.noreply.github.com> Date: Thu, 23 Apr 2026 20:29:52 +0800 Subject: [PATCH] style: move maxConn and speed limit inputs to advanced settings accordion (#464) --- vite-frontend/src/pages/forward.tsx | 98 ++++++++++++++++------------- 1 file changed, 54 insertions(+), 44 deletions(-) diff --git a/vite-frontend/src/pages/forward.tsx b/vite-frontend/src/pages/forward.tsx index c00ca36..bc2ab88 100644 --- a/vite-frontend/src/pages/forward.tsx +++ b/vite-frontend/src/pages/forward.tsx @@ -54,6 +54,7 @@ import { Switch } from "@/shadcn-bridge/heroui/switch"; import { Alert } from "@/shadcn-bridge/heroui/alert"; import { Progress } from "@/shadcn-bridge/heroui/progress"; import { Checkbox } from "@/shadcn-bridge/heroui/checkbox"; +import { Accordion, AccordionItem } from "@/shadcn-bridge/heroui/accordion"; import { createForward, getForwardList, @@ -4729,20 +4730,6 @@ export default function ForwardPage() {
- { - const value = Math.max(Number(e.target.value) || 0, 0); - setForm((prev) => ({ ...prev, maxConn: value })); - }} - description="此设置优先于用户的全局连接数限制。0 表示不限制。" - variant="bordered" - /> - - {isAdmin && ( - - )} +
+ { + const value = Math.max(Number(e.target.value) || 0, 0); + setForm((prev) => ({ ...prev, maxConn: value })); + }} + description="此设置优先于用户的全局连接数限制。0 表示不限制。" + variant="bordered" + /> + {isAdmin && ( + + )} +
+ +