[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", { await invoke("open_path", {
path: steam.cs2BaseDir(), path: steam.cs2BaseDir(),
}) })
addToast({ title: "CS2游戏目录" }) addToast({ title: "CS2目录" })
}} }}
> >
CS2游戏目录 CS2目录
</RoundedButton> </RoundedButton>
<RoundedButton <RoundedButton
onClick={async () => { onClick={async () => {

View File

@@ -28,7 +28,7 @@ const FastLaunch = () => {
}) })
addToast({ title: "启动国服成功" }) 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> </Button>
@@ -42,7 +42,7 @@ const FastLaunch = () => {
}) })
addToast({ title: "启动国际服成功" }) 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> </Button>

View File

@@ -19,7 +19,7 @@ const ForceQuit = () => {
await invoke("kill_steam") await invoke("kill_steam")
addToast({ title: "已关闭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 Steam
</Button> </Button>
@@ -29,7 +29,7 @@ const ForceQuit = () => {
await invoke("kill_game") await invoke("kill_game")
addToast({ title: "已关闭CS2" }) 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 CS2
</Button> </Button>

View File

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