Procházet zdrojové kódy

fix: drag error

#643
MystiPanda před 1 rokem
rodič
revize
ab6b796ce2

+ 0 - 4
src/assets/styles/index.scss

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

+ 4 - 0
src/assets/styles/layout.scss

@@ -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 {

+ 6 - 1
src/pages/_layout.tsx

@@ -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>
             }