[fix] home page button overflow
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user