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