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;
-ms-user-select: none;
}
[data-tauri-drag-region] {
app-region: drag;
}

View File

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

View File

@ -157,7 +157,12 @@ const Layout = () => {
<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 />}
</div>
}