notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit ac85bdc21d002a117a6cc776b2014da2f01dff17
parent e344b0947596d584f0bc25e14618517e538c07a6
Author: Fernando López Guevara <fernando.lguevara@gmail.com>
Date:   Tue, 15 Jul 2025 09:55:12 -0300

feat(profile-view): split nip05 when is_narrow

Diffstat:
Mcrates/notedeck_ui/src/profile/mod.rs | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/crates/notedeck_ui/src/profile/mod.rs b/crates/notedeck_ui/src/profile/mod.rs @@ -8,7 +8,7 @@ pub use picture::ProfilePic; pub use preview::ProfilePreview; use egui::{load::TexturePoll, Label, RichText}; -use notedeck::{IsFollowing, NostrName, NotedeckTextStyle}; +use notedeck::{ui::is_narrow, IsFollowing, NostrName, NotedeckTextStyle}; use crate::{app_images, colors, widgets::styled_button_toggleable}; @@ -39,12 +39,18 @@ pub fn display_name_widget<'a>( ) }); + if is_narrow(ui.ctx()) { + ui.end_row(); + } + let nip05_resp = name.nip05.map(|nip05| { - ui.add(app_images::verified_image()); + ui.horizontal(|ui| { + ui.add(app_images::verified_image()); - ui.add(Label::new( - RichText::new(nip05).size(16.0).color(crate::colors::TEAL), - )) + ui.label(RichText::new(nip05).size(16.0).color(crate::colors::TEAL)) + .on_hover_text(nip05) + }) + .inner }); (username_resp, nip05_resp)