mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 23:47:12 +02:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user