Revert "setting overflow scroll to outer element"

This reverts commit b157614329.
This commit is contained in:
2024-12-30 14:59:34 +08:00
parent b157614329
commit 7a5bd999a8
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 overflow-scroll">
<SheetContent className="flex flex-col">
<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", className)}
className={cn("relative overflow-hidden", className)}
{...props}
>
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">

View File

@@ -430,7 +430,7 @@ export default function ChatBOX() {
<>
<div className="flex flex-col p-2 gap-2 w-full">
<div className="flex items-center gap-2 justify-between">
<Settings setShow={setShowSettings} />
{true && <Settings setShow={setShowSettings} />}
<Button
variant="outline"
size="icon"