Skip to content

Commit

Permalink
Fix: fix scroll issue for file modal (#259)
Browse files Browse the repository at this point in the history
Signed-off-by: Daishan Peng <[email protected]>
  • Loading branch information
StrongMonkey authored Oct 22, 2024
1 parent d8dd4f6 commit 5e4d6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/admin/app/components/knowledge/file/FileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function FileModal({
<UploadIcon className="upload-icon" />
</Button>
</DialogHeader>
<ScrollArea className="max-h-[800px] mt-4">
<ScrollArea className="max-h-[45vh] mt-4">
<div className={cn("p-2 flex flex-wrap gap-2")}>
{knowledge?.map((item) => (
<FileChip
Expand Down

0 comments on commit 5e4d6d5

Please sign in to comment.