fix: 🐛

This commit is contained in:
codytseng 2025-01-23 12:01:27 +08:00
parent 86468e75cb
commit b15ce2c153
5 changed files with 26 additions and 34 deletions

View file

@ -77,9 +77,9 @@ CommandInput.displayName = CommandPrimitive.Input.displayName
const CommandList = React.forwardRef<
React.ElementRef<typeof CommandPrimitive.List>,
React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
>(({ className, ...props }, ref) => (
<ScrollArea className="max-h-[80vh]">
React.ComponentPropsWithoutRef<typeof CommandPrimitive.List> & { scrollAreaClassName?: string }
>(({ className, scrollAreaClassName, ...props }, ref) => (
<ScrollArea className={scrollAreaClassName}>
<CommandPrimitive.List ref={ref} className={cn('overflow-x-hidden', className)} {...props} />
</ScrollArea>
))