setting overflow scroll to outer element

This commit is contained in:
2024-12-30 10:48:03 +08:00
parent 115343cc27
commit b157614329
3 changed files with 3 additions and 3 deletions

View File

@@ -520,7 +520,7 @@ export default (props: { setShow: Dispatch<boolean> }) => {
{Tr("Settings")}
</Button>
</SheetTrigger>
<SheetContent className="flex flex-col">
<SheetContent className="flex flex-col overflow-scroll">
<ScrollArea>
<SheetHeader>
<SheetTitle>{Tr("Settings")}</SheetTitle>

View File

@@ -9,7 +9,7 @@ const ScrollArea = React.forwardRef<
>(({ className, children, ...props }, ref) => (
<ScrollAreaPrimitive.Root
ref={ref}
className={cn("relative overflow-hidden", className)}
className={cn("relative", className)}
{...props}
>
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">