feat(workspace): 用加载转圈替换消息骨架屏
This commit is contained in:
parent
93e03e1e5a
commit
bb2338e65b
|
|
@ -30,7 +30,7 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
||||||
{state === "collapsed" ? (
|
{state === "collapsed" ? (
|
||||||
<div className="group-has-data-[collapsible=icon]/sidebar-wrapper:-translate-y flex w-full cursor-pointer items-center justify-center">
|
<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">
|
<div className="text-primary block pt-1 font-serif group-hover/workspace-header:hidden">
|
||||||
DF
|
XC
|
||||||
</div>
|
</div>
|
||||||
<SidebarTrigger className="hidden pl-2 group-hover/workspace-header:block" />
|
<SidebarTrigger className="hidden pl-2 group-hover/workspace-header:block" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -38,11 +38,11 @@ export function WorkspaceHeader({ className }: { className?: string }) {
|
||||||
<div className="flex items-center justify-between gap-2">
|
<div className="flex items-center justify-between gap-2">
|
||||||
{env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? (
|
{env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? (
|
||||||
<Link href="/" className="text-primary ml-2 font-serif">
|
<Link href="/" className="text-primary ml-2 font-serif">
|
||||||
DeerFlow
|
XClaw侧边栏
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<div className="text-primary ml-2 cursor-default font-serif">
|
<div className="text-primary ml-2 cursor-default font-serif">
|
||||||
DeerFlow
|
XClaw(测试专用侧边栏。)
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<SidebarTrigger />
|
<SidebarTrigger />
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ export function WorkspaceSidebar({
|
||||||
{isSidebarOpen && <RecentChatList />}
|
{isSidebarOpen && <RecentChatList />}
|
||||||
</SidebarContent>
|
</SidebarContent>
|
||||||
<SidebarFooter>
|
<SidebarFooter>
|
||||||
<WorkspaceNavMenu />
|
{/* <WorkspaceNavMenu /> */}
|
||||||
</SidebarFooter>
|
</SidebarFooter>
|
||||||
<SidebarRail />
|
<SidebarRail />
|
||||||
</Sidebar>
|
</Sidebar>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue