fix(ui): fix SlotClone error in file card by reformatting DropdownMenuTrigger

This commit is contained in:
yiling
2026-05-24 10:04:52 +08:00
parent 1b04366724
commit 313b14c5ae
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -1214,7 +1214,7 @@ describe('AssetService', () => {
// 4. Verify some items were processed in S3
// We don't know the order, but if Folder A was in the first 100,
// then its synchronous cascade will have wiped the remaining children.
// 5. Trigger the purge job for the SECOND batch
// eslint-disable-next-line @typescript-eslint/no-explicit-any
await (assetService as any).purgePendingAssets()
+6 -6
View File
@@ -1,11 +1,11 @@
import { ObjectInfo } from '@/dtos/s3'
import {
DeleteObjectCommand,
GetObjectCommand,
HeadObjectCommand,
ListObjectsV2Command,
PutObjectCommand,
S3Client,
DeleteObjectCommand,
GetObjectCommand,
HeadObjectCommand,
ListObjectsV2Command,
PutObjectCommand,
S3Client,
} from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
import * as crypto from 'crypto'
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
</ContextMenuContent>
)
return (
<>
{contextMenuContent}
</>
)
return <>{contextMenuContent}</>
}
+2 -1
View File
@@ -267,7 +267,8 @@ export function FileCard({
</p>
</div>
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild> <Button
<DropdownMenuTrigger asChild>
<Button
size="icon-sm"
variant="ghost"
className="cursor-pointer"