From 0f6afbc8ac54b706a856e7c691b0c3e5bc9288b1 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Tue, 26 Mar 2024 12:55:13 +0100 Subject: [PATCH] Fix npub breaking layout --- src/components/Note/Note.module.scss | 6 ++++++ src/components/ProfileTabs/ProfileTabs.module.scss | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/Note/Note.module.scss b/src/components/Note/Note.module.scss index 5d1eef1..6ad0870 100644 --- a/src/components/Note/Note.module.scss +++ b/src/components/Note/Note.module.scss @@ -92,6 +92,12 @@ .label { color: var(--text-primary); } + a { + max-width: 440px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } .author { display: inline-block; color: var(--accent-links); diff --git a/src/components/ProfileTabs/ProfileTabs.module.scss b/src/components/ProfileTabs/ProfileTabs.module.scss index a316c31..4f5c8c4 100644 --- a/src/components/ProfileTabs/ProfileTabs.module.scss +++ b/src/components/ProfileTabs/ProfileTabs.module.scss @@ -145,7 +145,7 @@ font-size: 14px; font-weight: 400; line-height: 14px; - width: min(560px, 100%); + max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -269,4 +269,10 @@ display: none; } } + .zapInfo { + max-width: 86%; + } + .zapMessage { + max-width: 80% !important; + } }