feat: pagination + hide fields in settings

This commit is contained in:
Vasily Zubarev
2025-03-27 08:48:47 +01:00
parent a80684c3fb
commit 61da617f68
25 changed files with 813 additions and 220 deletions

View File

@@ -41,12 +41,12 @@ export function FilePreview({ file }: { file: File }) {
<p className="text-sm overflow-ellipsis">
<strong>Type:</strong> {file.mimetype}
</p>
{/* <p className="text-sm overflow-ellipsis">
<strong>Uploaded:</strong> {format(file.createdAt, "MMM d, yyyy")}
</p> */}
<p className="text-sm">
<strong>Size:</strong> {fileSize < 1 ? (fileSize * 1024).toFixed(2) + " KB" : fileSize.toFixed(2) + " MB"}
</p>
<p className="text-xs overflow-ellipsis">
<strong>Path:</strong> {file.path}
</p>
</div>
</div>
</>