Skip to content

Commit

Permalink
fix: windrag err
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Jan 5, 2024
1 parent 4298483 commit a7ddd3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/assets/styles/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
position: absolute;
inset: 0 28px 28px 0;
}

.drag-mask {
height: 38px;
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/pages/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,15 @@ export default function Layout() {
</div>
</div>

<div className="layout__right" data-windrag>
<div className="layout__right">
{OS === "windows" && (
<div className="the-bar">
<LayoutControl />
</div>
)}

<div className="drag-mask" data-windrag />

<AnimatePresence mode="wait">
{React.cloneElement(routes, { key: location.pathname })}
</AnimatePresence>
Expand Down

0 comments on commit a7ddd3a

Please sign in to comment.