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 // 4. Verify some items were processed in S3
// We don't know the order, but if Folder A was in the first 100, // 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. // then its synchronous cascade will have wiped the remaining children.
// 5. Trigger the purge job for the SECOND batch // 5. Trigger the purge job for the SECOND batch
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
await (assetService as any).purgePendingAssets() await (assetService as any).purgePendingAssets()
+6 -6
View File
@@ -1,11 +1,11 @@
import { ObjectInfo } from '@/dtos/s3' import { ObjectInfo } from '@/dtos/s3'
import { import {
DeleteObjectCommand, DeleteObjectCommand,
GetObjectCommand, GetObjectCommand,
HeadObjectCommand, HeadObjectCommand,
ListObjectsV2Command, ListObjectsV2Command,
PutObjectCommand, PutObjectCommand,
S3Client, S3Client,
} from '@aws-sdk/client-s3' } from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner' import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
import * as crypto from 'crypto' import * as crypto from 'crypto'
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
</ContextMenuContent> </ContextMenuContent>
) )
return ( return <>{contextMenuContent}</>
<>
{contextMenuContent}
</>
)
} }
+2 -1
View File
@@ -267,7 +267,8 @@ export function FileCard({
</p> </p>
</div> </div>
<DropdownMenu modal={false}> <DropdownMenu modal={false}>
<DropdownMenuTrigger asChild> <Button <DropdownMenuTrigger asChild>
<Button
size="icon-sm" size="icon-sm"
variant="ghost" variant="ghost"
className="cursor-pointer" className="cursor-pointer"