Skip to content

[bug]: Scroll issue on new block sidebar-16 #6651

Open
@adiramardiani

Description

Describe the bug

Hi @Jacksonmills @shadcn
Thanks for the blocks, but I have some issue here

  1. the width when resizing is weird, for some md or other screensize, the content show some weird horizontal scroll
  2. when content is just short, the block still give me vertical scroll, the remaining I think equal to header height

Here my trial & error

  1. 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>;
  1. I dont know how to solve, but the scroll still annonying

image

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

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions