mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
恢复左侧顶栏按钮并修复竖屏导航遮挡
This commit is contained in:
@@ -121,9 +121,41 @@ export function ContentArea({
|
|||||||
borderBottom: "1px solid var(--ss-border-color)",
|
borderBottom: "1px solid var(--ss-border-color)",
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
WebkitAppRegion: "drag",
|
WebkitAppRegion: "drag",
|
||||||
|
position: "relative",
|
||||||
} as React.CSSProperties
|
} as React.CSSProperties
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<div
|
||||||
|
style={
|
||||||
|
{
|
||||||
|
paddingLeft: "8px",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
height: "100%",
|
||||||
|
WebkitAppRegion: "no-drag",
|
||||||
|
flexShrink: 0,
|
||||||
|
position: "relative",
|
||||||
|
zIndex: floatingExpand && sidebarCollapsed && floatingExpanded ? 1301 : 1,
|
||||||
|
} 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={
|
||||||
@@ -145,22 +177,6 @@ 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