notedeck

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

commit 5396085d961940cd5e7154d42ff511b89e304869
parent f3f8d4ecb48efe71e035131d535f63850fca0626
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  2 May 2024 18:51:05 +0200

textmode: adjust name sizing so it doesn't bump the column

Diffstat:
Msrc/ui/note/mod.rs | 2+-
Msrc/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 @@ -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 @@ -85,7 +85,7 @@ fn ui_abbreviate_name(ui: &mut egui::Ui, name: &str, len: usize, color: Option<C ui.label(colored_name(name, color)); if should_abbrev { - ui.label(colored_name("...", color)); + ui.label(colored_name("..", color)); } }