From 8eeb7347a2d93a3da16a6546d3b7835524e1e87f Mon Sep 17 00:00:00 2001 From: purp1e Date: Thu, 6 Nov 2025 03:14:41 +0800 Subject: [PATCH] [fix] home page button overflow --- src/components/cstb/CommonDir.tsx | 4 ++-- src/components/cstb/FastLaunch.tsx | 4 ++-- src/components/cstb/ForceQuit.tsx | 4 ++-- src/components/cstb/PowerPlan.tsx | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/cstb/CommonDir.tsx b/src/components/cstb/CommonDir.tsx index 98acb0f..9c8297f 100644 --- a/src/components/cstb/CommonDir.tsx +++ b/src/components/cstb/CommonDir.tsx @@ -51,10 +51,10 @@ const CommonDir = () => { await invoke("open_path", { path: steam.cs2BaseDir(), }) - addToast({ title: "CS2游戏目录" }) + addToast({ title: "CS2目录" }) }} > - CS2游戏目录 + CS2目录 { diff --git a/src/components/cstb/FastLaunch.tsx b/src/components/cstb/FastLaunch.tsx index 0c086f9..cd0ebf6 100644 --- a/src/components/cstb/FastLaunch.tsx +++ b/src/components/cstb/FastLaunch.tsx @@ -28,7 +28,7 @@ const FastLaunch = () => { }) addToast({ title: "启动国服成功" }) }} - className="px-5 font-medium py-1.5 transition bg-red-200 dark:bg-red-900/60 rounded-full select-none" + className="px-4 py-1 font-medium transition bg-red-200 rounded-full select-none dark:bg-red-900/60" > 启动国服 @@ -42,7 +42,7 @@ const FastLaunch = () => { }) addToast({ title: "启动国际服成功" }) }} - className="px-5 font-medium py-1.5 transition bg-orange-200 dark:bg-orange-900/60 rounded-full select-none" + className="px-4 py-1 font-medium transition bg-orange-200 rounded-full select-none dark:bg-orange-900/60" > 启动国际服 diff --git a/src/components/cstb/ForceQuit.tsx b/src/components/cstb/ForceQuit.tsx index e794cda..75de03a 100644 --- a/src/components/cstb/ForceQuit.tsx +++ b/src/components/cstb/ForceQuit.tsx @@ -19,7 +19,7 @@ const ForceQuit = () => { await invoke("kill_steam") addToast({ title: "已关闭Steam" }) }} - className="px-5 font-medium py-1.5 transition bg-blue-200 dark:bg-blue-900/60 rounded-full select-none" + className="px-4 py-1 font-medium transition bg-blue-200 rounded-full select-none dark:bg-blue-900/60" > 关闭Steam @@ -29,7 +29,7 @@ const ForceQuit = () => { await invoke("kill_game") addToast({ title: "已关闭CS2" }) }} - className="px-5 font-medium py-1.5 transition bg-orange-200 dark:bg-orange-900/60 rounded-full select-none" + className="px-4 py-1 font-medium transition bg-orange-200 rounded-full select-none dark:bg-orange-900/60" > 关闭CS2 diff --git a/src/components/cstb/PowerPlan.tsx b/src/components/cstb/PowerPlan.tsx index 867ab0a..8f52bf1 100644 --- a/src/components/cstb/PowerPlan.tsx +++ b/src/components/cstb/PowerPlan.tsx @@ -77,6 +77,7 @@ const PowerPlan = () => { radius="full" fullWidth defaultSelectedKey="0" + className="gap-0" > {PowerPlans.slice(1).map((item) => (