Skip to content

Commit f89c2fd

Browse files
authored
sheet: Add overflow-scroll to SheetContent (#331)
Enables scrolling for sheet content when it exceeds the viewport height.
1 parent e974f7a commit f89c2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_ui/sheet/sheet_content.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def default_attrs
3333
{
3434
data_state: "open", # For animate in
3535
class: [
36-
"fixed pointer-events-auto z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
36+
"fixed pointer-events-auto z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 overflow-scroll",
3737
@side_classes
3838
]
3939
}

0 commit comments

Comments
 (0)