mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-15 05:07:35 +00:00
refactor(ScrollArea): adjust ref placement and className order
This commit is contained in:
@@ -6,11 +6,11 @@ export interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {}
|
||||
const ScrollArea = React.forwardRef<HTMLDivElement, ScrollAreaProps>(
|
||||
({ className, children, ...props }, ref) => (
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn('relative overflow-hidden', className)}
|
||||
className={cn(className, 'relative overflow-hidden')}
|
||||
{...props}
|
||||
>
|
||||
<div
|
||||
ref={ref}
|
||||
className="h-full w-full rounded-[inherit] overflow-auto"
|
||||
style={{
|
||||
WebkitOverflowScrolling: 'touch',
|
||||
|
||||
Reference in New Issue
Block a user