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:
@@ -637,13 +637,13 @@ fn render_irc_note(
|
|||||||
ui.set_clip_rect(rect);
|
ui.set_clip_rect(rect);
|
||||||
render_reltime(ui, note_cache, false).response
|
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.allocate_rect(rect, Sense::hover());
|
||||||
ui.put(rect, |ui: &mut egui::Ui| {
|
ui.put(rect, |ui: &mut egui::Ui| {
|
||||||
ui.set_clip_rect(rect);
|
ui.set_clip_rect(rect);
|
||||||
ui.add(
|
ui.add(
|
||||||
Username::new(profile.as_ref().ok(), note.pubkey())
|
Username::new(profile.as_ref().ok(), note.pubkey())
|
||||||
.abbreviated(15)
|
.abbreviated(8)
|
||||||
.pk_colored(true),
|
.pk_colored(true),
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user