[fix] home page button overflow

This commit is contained in:
2025-11-06 03:14:41 +08:00
parent 4c0c33382f
commit 8eeb7347a2
4 changed files with 7 additions and 6 deletions

View File

@@ -51,10 +51,10 @@ const CommonDir = () => {
await invoke("open_path", {
path: steam.cs2BaseDir(),
})
addToast({ title: "CS2游戏目录" })
addToast({ title: "CS2目录" })
}}
>
CS2游戏目录
CS2目录
</RoundedButton>
<RoundedButton
onClick={async () => {

View File

@@ -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"
>
</Button>
@@ -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"
>
</Button>

View File

@@ -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
</Button>
@@ -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
</Button>

View File

@@ -77,6 +77,7 @@ const PowerPlan = () => {
radius="full"
fullWidth
defaultSelectedKey="0"
className="gap-0"
>
{PowerPlans.slice(1).map((item) => (
<Tab key={item.id} title={item.title}></Tab>