新增横竖模式切换并支持侧栏悬浮展开

This commit is contained in:
JSR
2026-03-18 21:05:07 +08:00
parent d4cbfc556a
commit 224c89f4dd
3 changed files with 146 additions and 33 deletions
+11
View File
@@ -45,6 +45,8 @@ interface ContentAreaProps {
hasAnyPassword: boolean
onAuthClick: () => void
onLogout: () => void
isPortraitMode: boolean
onToggleOrientation: () => void
}
export function ContentArea({
@@ -52,6 +54,8 @@ export function ContentArea({
hasAnyPassword,
onAuthClick,
onLogout,
isPortraitMode,
onToggleOrientation,
}: ContentAreaProps): React.JSX.Element {
const { t } = useTranslation()
@@ -132,6 +136,13 @@ export function ContentArea({
}
>
<Space size="small">
<Button
size="small"
onClick={onToggleOrientation}
title={isPortraitMode ? "当前:竖屏模式" : "当前:横屏模式"}
>
</Button>
{permissionTag}
{hasAnyPassword && (
<>