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

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")} : 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
} }
> >