Open
Description
Describe the bug
Hi @Jacksonmills @shadcn
Thanks for the blocks, but I have some issue here
- the width when resizing is weird, for some md or other screensize, the content show some weird horizontal scroll
- when content is just short, the block still give me vertical scroll, the remaining I think equal to header height
Here my trial & error
- On first point happen on sidebar-7 to, What do you thing or any best practice, I dont know this is the best practice or not, but I fix using (thanks @rezaafaisal ) :
<div className="[--header-height:calc(theme(spacing.14))]">
<SidebarProvider className="flex flex-col">
<SiteHeader />
<div className="flex flex-1">
<AppSidebar />
<SidebarInset
className={cn(
'w-full',
'peer-data-[state=collapsed]:max-w-[calc(100vw-var(--sidebar-width-icon)-1rem)]',
'peer-data-[state=expanded]:max-w-[calc(100vw-var(--sidebar-width)-1rem)]',
'transition-[width] duration-200 ease-linear'
)}
>
{children}
</SidebarInset>
</div>
</SidebarProvider>
</div>;
- I dont know how to solve, but the scroll still annonying
Recording.2025-02-14.203058.mp4
here the v0 if you want demo
https://v0.dev/chat/sidebar-16-TO3dinOZ5o3?b=b_IiiEJQ2DaPR
https://kzmjklowe3cyql650pxu.lite.vusercontent.net/dashboard
Affected component/components
sidebar
How to reproduce
Recording.2025-02-14.203058.mp4
here the v0 if you want demo
https://v0.dev/chat/sidebar-16-TO3dinOZ5o3?b=b_IiiEJQ2DaPR
https://kzmjklowe3cyql650pxu.lite.vusercontent.net/dashboard
Codesandbox/StackBlitz link
No response
Logs
System Info
WSL
Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues
Activity