feat: Add border-radius for window on linux
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user