-
-
- {item.name}
-
+ {/* File/Folder Icon or Preview */}
+
+ {item.type === 'file' && item.mimeType?.startsWith('image/') ? (
+
+
+
+ ) : (
+
{getFileIcon(item, true)}
+ )}
- {/* File Size and Type */}
- {item.type === 'file' && (
-
-
{getFileTypeLabel(item, translate)}
- {item.size && (
-
- {formatFileSize(item.size)}
-
- )}
+ {/* File/Folder Name and Details */}
+
+
- )}
- {/* Folder Child Count */}
- {item.type === 'folder' && (
-
- {typeof item.childCount === 'number' ? `${item.childCount} ${translate('::App.Listform.ListformField.Item')}` : translate('::FileManager.Counting')}
-
- )}
+ {/* File Size and Type */}
+ {item.type === 'file' && (
+
+
+ {getFileTypeLabel(item, translate)}
+
+ {item.size && (
+
+ {formatFileSize(item.size)}
+
+ )}
+
+ )}
+
+ {/* Folder Child Count */}
+ {item.type === 'folder' && (
+
+ {typeof item.childCount === 'number'
+ ? `${item.childCount} ${translate('::App.Listform.ListformField.Item')}`
+ : translate('::FileManager.Counting')}
+
+ )}
+
-
-
- {/* Context Menu */}
- {dropdownOpen && contextMenuPosition && dropdownList}
+
+ {/* Context Menu */}
+ {dropdownOpen && contextMenuPosition && dropdownList}
>
)
})
diff --git a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx
index ec1cac5..5c2b7cb 100644
--- a/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx
+++ b/ui/src/views/admin/listForm/edit/json-row-operations/JsonRowOpDialogEditForm.tsx
@@ -894,7 +894,7 @@ function JsonRowOpDialogEditForm({