fix: isolate titlebar drag region #6968

This commit is contained in:
Tunglies
2026-05-10 16:16:11 +08:00
parent 753dad7c40
commit 243594c5d1
2 changed files with 16 additions and 1 deletions
+11
View File
@@ -120,6 +120,11 @@
box-sizing: border-box;
height: 36px;
border-bottom: 1px solid var(--divider-color);
&-drag-region {
align-self: stretch;
flex: 1 1 auto;
}
}
.layout-content__left .the-logo {
@@ -148,6 +153,12 @@
box-sizing: border-box;
height: 36px;
border-bottom: 1px solid var(--divider-color);
&-drag-region {
align-self: stretch;
flex: 1 1 auto;
order: 1;
}
}
.layout-content__left {
+5 -1
View File
@@ -208,7 +208,11 @@ const Layout = () => {
const customTitlebar = useMemo(
() =>
!decorated ? (
<div className="the_titlebar" data-tauri-drag-region="true">
<div className="the_titlebar">
<div
className="the_titlebar-drag-region"
data-tauri-drag-region="true"
/>
<WindowControls ref={windowControlsRef} />
</div>
) : null,