fix: drag error

#643
This commit is contained in:
MystiPanda 2024-03-16 20:37:39 +08:00
parent 82246fd9c7
commit e2498b3e91
3 changed files with 10 additions and 5 deletions

View File

@ -59,7 +59,3 @@ body {
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
} }
[data-tauri-drag-region] {
app-region: drag;
}

View File

@ -28,6 +28,7 @@
// $maxLogo: 100px; // $maxLogo: 100px;
.the-logo { .the-logo {
app-region: drag;
position: relative; position: relative;
flex: 1 0 58px; flex: 1 0 58px;
// width: 100%; // width: 100%;
@ -101,6 +102,9 @@
justify-content: end; justify-content: end;
box-sizing: border-box; box-sizing: border-box;
z-index: 2; z-index: 2;
.the-dragbar {
app-region: drag;
}
} }
.the-content { .the-content {

View File

@ -157,7 +157,12 @@ const Layout = () => {
<div className="layout__right"> <div className="layout__right">
{ {
<div className="the-bar" data-tauri-drag-region="true"> <div className="the-bar">
<div
className="the-dragbar"
data-tauri-drag-region="true"
style={{ width: "100%" }}
></div>
{OS !== "macos" && <LayoutControl />} {OS !== "macos" && <LayoutControl />}
</div> </div>
} }