Truncate long filenames in Blossom upload dialog via CSS

Uses CSS truncation (w-full, overflow-hidden, truncate) to display
long filenames with ellipsis in the upload dialog UI.
This commit is contained in:
Claude
2026-01-16 17:42:20 +00:00
parent d172d67584
commit 23469c20f0

View File

@@ -343,7 +343,7 @@ export function BlossomUploadDialog({
disabled={uploading}
/>
{selectedFile ? (
<div className="flex flex-col items-center gap-2">
<div className="flex flex-col items-center gap-2 w-full overflow-hidden">
{previewUrl ? (
<img
src={previewUrl}
@@ -356,7 +356,7 @@ export function BlossomUploadDialog({
"size-12 text-muted-foreground",
)
)}
<p className="font-medium text-sm truncate max-w-full">
<p className="font-medium text-sm truncate w-full text-center">
{selectedFile.name}
</p>
<p className="text-xs text-muted-foreground">