mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
修复了聊天打开的情况下无法拖动窗口的问题
This commit is contained in:
11
src/App.scss
11
src/App.scss
@@ -6,6 +6,17 @@
|
|||||||
animation: appFadeIn 0.35s ease-out;
|
animation: appFadeIn 0.35s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.window-drag-region {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 150px; // 预留系统最小化/最大化/关闭按钮区域
|
||||||
|
height: 40px;
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
pointer-events: auto;
|
||||||
|
z-index: 2000;
|
||||||
|
}
|
||||||
|
|
||||||
.main-layout {
|
.main-layout {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -346,6 +346,7 @@ function App() {
|
|||||||
// 主窗口 - 完整布局
|
// 主窗口 - 完整布局
|
||||||
return (
|
return (
|
||||||
<div className="app-container">
|
<div className="app-container">
|
||||||
|
<div className="window-drag-region" aria-hidden="true" />
|
||||||
{isLocked && (
|
{isLocked && (
|
||||||
<LockScreen
|
<LockScreen
|
||||||
onUnlock={() => setLocked(false)}
|
onUnlock={() => setLocked(false)}
|
||||||
|
|||||||
Reference in New Issue
Block a user