mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 06:23:08 +02:00
Fix pair editor container
This commit is contained in:
@@ -5,11 +5,15 @@ import type { ReactNode } from 'react';
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
type?: S.ScrollAreaProps['type'];
|
||||
}
|
||||
|
||||
export function ScrollArea({ children, className }: Props) {
|
||||
export function ScrollArea({ children, className, type }: Props) {
|
||||
return (
|
||||
<S.Root className={classnames(className, 'group/scroll overflow-hidden')} type="hover">
|
||||
<S.Root
|
||||
className={classnames(className, 'group/scroll overflow-hidden')}
|
||||
type={type ?? 'hover'}
|
||||
>
|
||||
<S.Viewport className="h-full w-full">{children}</S.Viewport>
|
||||
<ScrollBar orientation="vertical" />
|
||||
<ScrollBar orientation="horizontal" />
|
||||
|
||||
Reference in New Issue
Block a user