From 2be4bb11b2786822b3fcd21043da49522fe6dd24 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Mon, 28 Jul 2025 15:02:08 +0800 Subject: [PATCH 1/2] feat(ui): update ui performance --- src-tauri/tauri.conf.json | 4 ++-- src/App.tsx | 27 +++++++++++++-------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b6ee899..d4cf26d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -13,8 +13,8 @@ "windows": [ { "title": "骂人宝典", - "width": 800, - "height": 600 + "width": 560, + "height": 400 } ], "security": { diff --git a/src/App.tsx b/src/App.tsx index c9c50f3..162f0ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,7 +7,6 @@ enum Level { } export default function App() { - // 文本内容状态 const [text, setText] = useState("") const [isLast, setIsLast] = useState(false) const [last, setLast] = useState("") @@ -50,33 +49,33 @@ export default function App() { return (
-
-

骂人宝典

- -
- -
-
+
+
- {text} +