feat(ui): add responsive layout support for mobile and small screens

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-07 15:47:16 +08:00
parent dd659dcaa5
commit 768d1326b1
17 changed files with 664 additions and 216 deletions

View File

@@ -15,11 +15,13 @@ import { Button } from "@/components/ui/button"
import { AppToaster } from "@/components/ui/app-toaster"
import { resolveWelcomeError } from "@/components/welcome/error-utils"
import { AppTitleBar } from "@/components/layout/app-title-bar"
import { useIsMobile } from "@/hooks/use-mobile"
export function WelcomeScreen() {
const t = useTranslations("WelcomePage")
const [history, setHistory] = useState<FolderHistoryEntry[]>([])
const [loading, setLoading] = useState(true)
const isMobile = useIsMobile()
const { shortcuts } = useShortcutSettings()
const handleOpenSettings = useCallback(() => {
@@ -83,8 +85,20 @@ export function WelcomeScreen() {
}
/>
<div className="flex-1 flex overflow-hidden">
<div className="w-60 shrink-0 flex flex-col border-r">
<div
className={
isMobile
? "flex-1 flex flex-col overflow-hidden"
: "flex-1 flex overflow-hidden"
}
>
<div
className={
isMobile
? "shrink-0 flex flex-col border-b"
: "w-60 shrink-0 flex flex-col border-r"
}
>
<SoftwareInfo />
<FolderActions />
</div>