SidebarInset 缺少 min-w-0,因此水平溢出的内容使页面比视口更宽
作者: heatherhelen创建于 2026年8月3日更新于 2026年9月16日
`SidebarInset` 以 `relative flex w-full flex-1 flex-col` 形式渲染,且 **没有 `min-w-0`**。一个 flex 项默认为 `min-width: auto`,因此不会缩小到其内容的内置宽度以下 - 任何宽的子元素都会使内容列拒绝向侧边栏提供空间,而整个页面则会水平溢出。
内容来源: shadcn-ui/ui