ircmode: tighten username

will probably have to change the design of this for mobile

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-11 13:36:29 -07:00
parent d0efb2ef55
commit 116ba27f3f

View File

@@ -637,13 +637,13 @@ fn render_irc_note(
ui.set_clip_rect(rect);
render_reltime(ui, note_cache, false).response
});
let (_id, rect) = ui.allocate_space(egui::vec2(200.0, 20.0));
let (_id, rect) = ui.allocate_space(egui::vec2(150.0, 20.0));
ui.allocate_rect(rect, Sense::hover());
ui.put(rect, |ui: &mut egui::Ui| {
ui.set_clip_rect(rect);
ui.add(
Username::new(profile.as_ref().ok(), note.pubkey())
.abbreviated(15)
.abbreviated(8)
.pk_colored(true),
)
});