This commit is contained in:
bietiaop
2025-02-05 19:45:30 +08:00
parent b59c1d9122
commit b08a29897f
2 changed files with 4 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ export default function FileTable({
setPreviewImages([])
setPreviewIndex(0)
setShowImage(false)
}, [files])
}, [currentPath])
const onPreviewImage = (name: string, images: PreviewImage[]) => {
const index = images.findIndex((image) => image.key === name)

View File

@@ -74,6 +74,9 @@ export default function ImageNameButton({
src={data}
alt={name}
className="w-8 h-8 flex-shrink-0"
classNames={{
wrapper: 'w-8 h-8 flex-shrink-0'
}}
radius="sm"
/>
)