diff --git a/src/app.rs b/src/app.rs index ff3bc45..dc5f657 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2726,9 +2726,10 @@ impl App { return; } let p = self.pal; - let (row, _) = ui.allocate_exact_size(vec2(ui.available_width(), 40.0), egui::Sense::hover()); - // (Its chin goes behind the input, which is drawn after it; the eyes stay clear.) - let face = egui::Rect::from_min_size(row.left_top() + vec2(14.0, -10.0), vec2(64.0, 64.0)); + // Small, and inside its own row: it never reaches up over the chat. (Its chin goes behind + // the input, which is drawn after it; the eyes stay clear.) + let (row, _) = ui.allocate_exact_size(vec2(ui.available_width(), 26.0), egui::Sense::hover()); + let face = egui::Rect::from_min_size(row.left_top() + vec2(16.0, 2.0), vec2(40.0, 40.0)); self.dock_face(ui, bot, face); let now = ui.input(|i| i.time); let waiting = self.approvals.contains_key(&bot.id); diff --git a/src/app/sidebar_ui.rs b/src/app/sidebar_ui.rs index babfa4b..28b6973 100644 --- a/src/app/sidebar_ui.rs +++ b/src/app/sidebar_ui.rs @@ -199,9 +199,11 @@ impl App { let col = self.bot_color(bot); avatar::paint_posed(ui.painter(), rect, &bot.shape, col, pose); if waiting { - let at = rect.right_top() + vec2(-8.0, 8.0); - ui.painter().circle_filled(at, 8.0, self.pal.pane); - ui.painter().circle_filled(at, 6.0, self.pal.attention); + // (Sized with the face.) + let k = rect.width() / 64.0; + let at = rect.right_top() + vec2(-7.0, 7.0) * k; + ui.painter().circle_filled(at, 7.0 * k + 1.5, self.pal.pane); + ui.painter().circle_filled(at, 6.0 * k, self.pal.attention); } }