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

This commit is contained in:
William Casarin
2024-05-02 18:51:05 +02:00
parent f3f8d4ecb4
commit 5396085d96
2 changed files with 2 additions and 2 deletions

View File

@@ -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),
)
});

View File

@@ -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));
}
}