mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 11:49:02 +08:00
修正竖屏展开按钮位置并恢复顶栏显示
This commit is contained in:
@@ -100,8 +100,6 @@ export function ContentArea({
|
|||||||
: t("permissions.view")}
|
: t("permissions.view")}
|
||||||
</Tag>
|
</Tag>
|
||||||
)
|
)
|
||||||
const useFloatingSidebarToggle = floatingExpand && sidebarCollapsed
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
style={{
|
style={{
|
||||||
@@ -129,20 +127,14 @@ export function ContentArea({
|
|||||||
<div
|
<div
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
paddingLeft: useFloatingSidebarToggle ? 0 : "8px",
|
paddingLeft: "8px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
height: useFloatingSidebarToggle ? "auto" : "100%",
|
height: "100%",
|
||||||
WebkitAppRegion: "no-drag",
|
WebkitAppRegion: "no-drag",
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
position: useFloatingSidebarToggle ? "fixed" : "relative",
|
position: "relative",
|
||||||
left: useFloatingSidebarToggle ? "8px" : undefined,
|
zIndex: floatingExpand && sidebarCollapsed && floatingExpanded ? 1301 : 1,
|
||||||
top: useFloatingSidebarToggle ? "4px" : undefined,
|
|
||||||
zIndex: useFloatingSidebarToggle
|
|
||||||
? 1402
|
|
||||||
: floatingExpand && sidebarCollapsed && floatingExpanded
|
|
||||||
? 1301
|
|
||||||
: 1,
|
|
||||||
} as React.CSSProperties
|
} as React.CSSProperties
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user