From 313b14c5ae476e5ec8dababa79be85457a833cc1 Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 24 May 2026 10:04:52 +0800
Subject: [PATCH] fix(ui): fix SlotClone error in file card by reformatting
DropdownMenuTrigger
---
src/services/asset/asset.test.ts | 2 +-
src/services/s3/s3.ts | 12 ++++++------
src/ui/components/file-browser/context-menu.tsx | 6 +-----
src/ui/components/file-browser/file-card.tsx | 3 ++-
4 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/src/services/asset/asset.test.ts b/src/services/asset/asset.test.ts
index debd47dc..a6be6e47 100644
--- a/src/services/asset/asset.test.ts
+++ b/src/services/asset/asset.test.ts
@@ -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()
diff --git a/src/services/s3/s3.ts b/src/services/s3/s3.ts
index 604f2b24..6bb5a4e6 100644
--- a/src/services/s3/s3.ts
+++ b/src/services/s3/s3.ts
@@ -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'
diff --git a/src/ui/components/file-browser/context-menu.tsx b/src/ui/components/file-browser/context-menu.tsx
index d7f6dba3..042c6f39 100644
--- a/src/ui/components/file-browser/context-menu.tsx
+++ b/src/ui/components/file-browser/context-menu.tsx
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
)
- return (
- <>
- {contextMenuContent}
- >
- )
+ return <>{contextMenuContent}>
}
diff --git a/src/ui/components/file-browser/file-card.tsx b/src/ui/components/file-browser/file-card.tsx
index 51b3ee28..2f0e569b 100644
--- a/src/ui/components/file-browser/file-card.tsx
+++ b/src/ui/components/file-browser/file-card.tsx
@@ -267,7 +267,8 @@ export function FileCard({
-