feat: Add border-radius for window on linux

This commit is contained in:
MystiPanda
2024-03-13 13:58:29 +08:00
parent df2f102d9e
commit 9b2c8fa25d
7 changed files with 21 additions and 11 deletions

View File

@@ -122,6 +122,14 @@ const Layout = () => {
({ palette }) => ({
bgcolor: palette.background.paper,
}),
OS === "linux"
? {
borderRadius: "8px",
border: "2px solid var(--divider-color)",
width: "calc(100vw - 4px)",
height: "calc(100vh - 4px)",
}
: {},
]}
>
<div className="layout__left" data-tauri-drag-region="true">
@@ -148,11 +156,11 @@ const Layout = () => {
</div>
<div className="layout__right">
{OS === "windows" && (
{
<div className="the-bar" data-tauri-drag-region="true">
<LayoutControl />
{OS !== "macos" && <LayoutControl />}
</div>
)}
}
<TransitionGroup className="the-content">
<CSSTransition