mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
修复 macOS 下主窗口拖拽区域失效问题
This commit is contained in:
@@ -111,7 +111,16 @@ export function ContentArea({
|
||||
} as React.CSSProperties
|
||||
}
|
||||
>
|
||||
<div style={{ flex: 1 }} />
|
||||
<div
|
||||
data-tauri-drag-region
|
||||
style={
|
||||
{
|
||||
flex: 1,
|
||||
height: "100%",
|
||||
WebkitAppRegion: "drag",
|
||||
} as React.CSSProperties
|
||||
}
|
||||
/>
|
||||
<div
|
||||
style={
|
||||
{
|
||||
|
||||
@@ -185,6 +185,7 @@ export function Sidebar({ activeMenu, permission, onMenuChange }: SidebarProps):
|
||||
theme="light"
|
||||
>
|
||||
<div
|
||||
data-tauri-drag-region
|
||||
style={
|
||||
{
|
||||
padding: "32px 24px 16px",
|
||||
|
||||
Reference in New Issue
Block a user