feat(workspace): 用加载转圈替换消息骨架屏

This commit is contained in:
肖应宇 2026-03-31 16:45:30 +08:00
parent 93e03e1e5a
commit bb2338e65b
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export function WorkspaceHeader({ className }: { className?: string }) {
{state === "collapsed" ? (
<div className="group-has-data-[collapsible=icon]/sidebar-wrapper:-translate-y flex w-full cursor-pointer items-center justify-center">
<div className="text-primary block pt-1 font-serif group-hover/workspace-header:hidden">
DF
XC
</div>
<SidebarTrigger className="hidden pl-2 group-hover/workspace-header:block" />
</div>
@ -38,11 +38,11 @@ export function WorkspaceHeader({ className }: { className?: string }) {
<div className="flex items-center justify-between gap-2">
{env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? (
<Link href="/" className="text-primary ml-2 font-serif">
DeerFlow
XClaw侧边栏
</Link>
) : (
<div className="text-primary ml-2 cursor-default font-serif">
DeerFlow
XClaw
</div>
)}
<SidebarTrigger />

View File

@ -29,7 +29,7 @@ export function WorkspaceSidebar({
{isSidebarOpen && <RecentChatList />}
</SidebarContent>
<SidebarFooter>
<WorkspaceNavMenu />
{/* <WorkspaceNavMenu /> */}
</SidebarFooter>
<SidebarRail />
</Sidebar>