Fix long filename truncation in upload dialog (#176)

* fix: truncate long filenames in blossom upload dialog

- Add line-clamp-1 and proper width constraints to prevent long filenames
  from breaking layout
- Update default fallback server to blossom.band

* fix: use max-w-xs for proper filename truncation

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Alejandro
2026-01-20 17:39:51 +01:00
committed by GitHub
parent 13fec0345f
commit 13081938ff

View File

@@ -39,10 +39,7 @@ import type { Subscription } from "rxjs";
* Well-known public Blossom servers that can be used as fallbacks
* when the user doesn't have their own server list configured
*/
const FALLBACK_SERVERS = [
"https://blossom.primal.net",
"https://nostr.download",
];
const FALLBACK_SERVERS = ["https://blossom.band/"];
interface BlossomUploadDialogProps {
/** Whether the dialog is open */
@@ -356,7 +353,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 max-w-xs text-center">
{selectedFile.name}
</p>
<p className="text-xs text-muted-foreground">