From f37d38d4e294bf5338ce7d5f84a0f3ed84a3cec1 Mon Sep 17 00:00:00 2001 From: jarvis2f <137974272+jarvis2f@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Optimize=20the=20layout=20a?= =?UTF-8?q?nd=20style=20of=20the=20settings=20dialog=20and=20proxy=20compo?= =?UTF-8?q?nents.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/proxy-ping.tsx | 2 +- web/src/components/proxys.tsx | 17 +++++++++-------- web/src/components/settings-dialog.tsx | 6 ++---- web/src/components/settings-form.tsx | 6 +++--- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/web/src/components/proxy-ping.tsx b/web/src/components/proxy-ping.tsx index 577a7f4..3e1d874 100644 --- a/web/src/components/proxy-ping.tsx +++ b/web/src/components/proxy-ping.tsx @@ -35,7 +35,7 @@ export default function ProxyPing({ accountId }: { accountId: string }) { {!isLoading && error && Connection error} {!isLoading && data && (
- Ping: {(data.ping * 1000).toFixed(0)}ms + {(data.ping * 1000).toFixed(0)} ms
)} diff --git a/web/src/components/proxys.tsx b/web/src/components/proxys.tsx index 7b0a301..4e69249 100644 --- a/web/src/components/proxys.tsx +++ b/web/src/components/proxys.tsx @@ -159,7 +159,7 @@ export default function Proxys({ Add Proxy -
+
{proxys.map((proxy) => ( {enableSelect && ( - +
+ +
)} diff --git a/web/src/components/settings-dialog.tsx b/web/src/components/settings-dialog.tsx index 20ec031..4e80918 100644 --- a/web/src/components/settings-dialog.tsx +++ b/web/src/components/settings-dialog.tsx @@ -47,10 +47,8 @@ export const SettingsDialog: React.FC = () => { Statistics Proxys - -
- -
+ +
diff --git a/web/src/components/settings-form.tsx b/web/src/components/settings-form.tsx index 6c81b34..f4ddd04 100644 --- a/web/src/components/settings-form.tsx +++ b/web/src/components/settings-form.tsx @@ -36,9 +36,9 @@ export default function SettingsForm() { return (
-
+

These settings will be applied to all accounts. @@ -134,7 +134,7 @@ export default function SettingsForm() {

-
+