feat(webui): add simplified mobile-friendly layout for file and share lists (#356)

* feat(webui): add simplified mobile-friendly layout for file and share lists

* refactor(webui): switch mobile file list layout to 1-column grid

* feat(webui): show foldertree by default in child sidebar and add close button

* feat(webui): add collapsible section headers and fix folder card full-width on mobile

* feat(webui): improve mobile breadcrumb bar with middle truncation and dual ellipsis

* fix(webui): unify breadcrumb DOM structure across desktop and mobile

* fix(webui): remove unused breadcrumbs variable in BreadcrumbNav

* fix(webui): complete and confirm file uploads on mobile and handle errors properly

* fix(webui): remove active scale animation on mobile FAB to stabilize dropdown menu anchor

* refactor(webui): use PresignedUrl type from dtos for uploadFiles and eliminate any cast

* fix(webui): scope folder card max width to desktop with responsive md:max-w-[340px]
This commit is contained in:
Yiling-J
2026-08-27 20:44:08 +08:00
committed by GitHub
parent d9a8b6a191
commit d16e31c0e5
14 changed files with 2053 additions and 324 deletions
+19 -2
View File
@@ -134,10 +134,27 @@ export function TopNav() {
)
}
import { Menu } from 'lucide-react'
import { Button } from '@/ui/components/ui/button'
import { useDualSidebarStore } from '@/ui/stores/dual-sidebar'
function TeamHeader() {
const { toggleMobileMenu } = useDualSidebarStore()
return (
<div className="flex h-14 flex-wrap items-center justify-center gap-2 border-b border-border bg-card px-4 py-2 flex-shrink-0">
<ShumaiLogo className="w-10 h-10 text-orange-600" />
<div className="flex h-14 items-center justify-between border-b border-border bg-card px-4 py-2 flex-shrink-0">
<Button
variant="ghost"
size="icon"
onClick={toggleMobileMenu}
className="md:hidden text-foreground hover:bg-accent -ml-2"
aria-label="Open navigation menu"
>
<Menu className="h-5 w-5" />
</Button>
<div className="flex flex-1 items-center justify-center">
<ShumaiLogo className="w-10 h-10 text-orange-600" />
</div>
<div className="w-9 md:hidden" />
</div>
)
}