textmode: adjust name sizing so it doesn't bump the column
This commit is contained in:
@@ -169,7 +169,7 @@ impl<'a> Note<'a> {
|
|||||||
ui.put(rect, |ui: &mut egui::Ui| {
|
ui.put(rect, |ui: &mut egui::Ui| {
|
||||||
ui.add(
|
ui.add(
|
||||||
ui::Username::new(profile.as_ref().ok(), self.note.pubkey())
|
ui::Username::new(profile.as_ref().ok(), self.note.pubkey())
|
||||||
.abbreviated(8)
|
.abbreviated(6)
|
||||||
.pk_colored(true),
|
.pk_colored(true),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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));
|
ui.label(colored_name(name, color));
|
||||||
|
|
||||||
if should_abbrev {
|
if should_abbrev {
|
||||||
ui.label(colored_name("...", color));
|
ui.label(colored_name("..", color));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user