From 5396085d961940cd5e7154d42ff511b89e304869 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 2 May 2024 18:51:05 +0200 Subject: [PATCH] textmode: adjust name sizing so it doesn't bump the column --- src/ui/note/mod.rs | 2 +- src/ui/username.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/note/mod.rs b/src/ui/note/mod.rs index 86effcc..d3ddfee 100644 --- a/src/ui/note/mod.rs +++ b/src/ui/note/mod.rs @@ -169,7 +169,7 @@ impl<'a> Note<'a> { ui.put(rect, |ui: &mut egui::Ui| { ui.add( ui::Username::new(profile.as_ref().ok(), self.note.pubkey()) - .abbreviated(8) + .abbreviated(6) .pk_colored(true), ) }); diff --git a/src/ui/username.rs b/src/ui/username.rs index 151bcda..71db4fe 100644 --- a/src/ui/username.rs +++ b/src/ui/username.rs @@ -85,7 +85,7 @@ fn ui_abbreviate_name(ui: &mut egui::Ui, name: &str, len: usize, color: Option