修正竖屏展开按钮位置并恢复顶栏显示

This commit is contained in:
JSR
2026-03-18 22:08:42 +08:00
parent c10a719438
commit 38da2c48e6
+4 -12
View File
@@ -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
}
>