mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-30 06:24:21 +01:00
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.add(
|
||||
ui::Username::new(profile.as_ref().ok(), self.note.pubkey())
|
||||
.abbreviated(8)
|
||||
.abbreviated(6)
|
||||
.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));
|
||||
|
||||
if should_abbrev {
|
||||
ui.label(colored_name("...", color));
|
||||
ui.label(colored_name("..", color));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user