mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
fix: make collapsed scrollbar scrollable
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -392,7 +392,10 @@ export function SidebarContent({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
||||
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-x-hidden overflow-y-auto",
|
||||
// The collapsed rail is exactly one icon wide, so a scrollbar gutter
|
||||
// would squeeze the icons. Hide it but keep the scrolling.
|
||||
"group-data-[collapsible=icon]:[scrollbar-width:none] group-data-[collapsible=icon]:[&::-webkit-scrollbar]:hidden",
|
||||
className,
|
||||
)}
|
||||
data-sidebar="content"
|
||||
|
||||
Reference in New Issue
Block a user