From 116ba27f3f5445c152d9a24425b5bda9be1f0908 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 11 Apr 2024 13:36:29 -0700 Subject: [PATCH] ircmode: tighten username will probably have to change the design of this for mobile Signed-off-by: William Casarin --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index a280216..1254441 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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), ) });