From fcf4ef3638c712d707657c71b9937e0aa03578a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Wed, 11 Nov 2026 23:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E8=A7=80:=20the=20face=20above=20the?= =?UTF-8?q?=20input=20is=20smaller=20and=20stays=20in=20its=20own=20row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was 64 px and reached 10 px up over the chat; now 40 px inside a 26 px row, so it never covers what was said, and the yellow dot is sized with it. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01Uirha3QxSfoydRPM9mjj6d --- src/app.rs | 7 ++++--- src/app/sidebar_ui.rs | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) 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); } }