mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
修复竖屏展开后导航栏无法收起
This commit is contained in:
@@ -124,35 +124,6 @@ export function ContentArea({
|
|||||||
} as React.CSSProperties
|
} as React.CSSProperties
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
style={
|
|
||||||
{
|
|
||||||
paddingLeft: "8px",
|
|
||||||
display: "flex",
|
|
||||||
alignItems: "center",
|
|
||||||
height: "100%",
|
|
||||||
WebkitAppRegion: "no-drag",
|
|
||||||
flexShrink: 0,
|
|
||||||
} as React.CSSProperties
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<Button
|
|
||||||
type="text"
|
|
||||||
size="small"
|
|
||||||
onClick={onToggleSidebar}
|
|
||||||
icon={
|
|
||||||
floatingExpand && sidebarCollapsed
|
|
||||||
? floatingExpanded
|
|
||||||
? <MenuFoldOutlined />
|
|
||||||
: <MenuUnfoldOutlined />
|
|
||||||
: sidebarCollapsed
|
|
||||||
? <MenuUnfoldOutlined />
|
|
||||||
: <MenuFoldOutlined />
|
|
||||||
}
|
|
||||||
title={sidebarCollapsed ? "展开导航栏" : "收起导航栏"}
|
|
||||||
style={{ width: "32px", height: "32px" }}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
style={
|
style={
|
||||||
@@ -174,6 +145,22 @@ export function ContentArea({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Space size="small">
|
<Space size="small">
|
||||||
|
<Button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
onClick={onToggleSidebar}
|
||||||
|
icon={
|
||||||
|
floatingExpand && sidebarCollapsed
|
||||||
|
? floatingExpanded
|
||||||
|
? <MenuFoldOutlined />
|
||||||
|
: <MenuUnfoldOutlined />
|
||||||
|
: sidebarCollapsed
|
||||||
|
? <MenuUnfoldOutlined />
|
||||||
|
: <MenuFoldOutlined />
|
||||||
|
}
|
||||||
|
title={sidebarCollapsed ? "展开导航栏" : "收起导航栏"}
|
||||||
|
style={{ width: "32px", height: "32px" }}
|
||||||
|
/>
|
||||||
{permissionTag}
|
{permissionTag}
|
||||||
{hasAnyPassword && (
|
{hasAnyPassword && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user