Skip to content

Commit 7abfd38

Browse files
committed
vite-shadcn 侧边栏折叠图片隐藏
1 parent 7033ff3 commit 7abfd38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite-shadcn/src/components/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
2222
return (
2323
<Sidebar collapsible="icon" {...props}>
2424
<SidebarHeader>
25-
<Avatar className="h-15 w-15 rounded-lg ml-15">
25+
<Avatar className="h-15 w-15 rounded-lg ml-15 group-data-[state=collapsed]:hidden">
2626
<AvatarImage src="orange.png" />
2727
<AvatarFallback className="rounded-lg">Orange</AvatarFallback>
2828
</Avatar>

0 commit comments

Comments
 (0)