From 2a85ee562c2c2b65bbfc0996754e328fe4d55e64 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 29 Jul 2025 10:12:52 -0700 Subject: [PATCH] ui/note: simplify weird hack and make note of it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/damus-io/notedeck/issues/842 Fixes: f2e01f0e4035 ("fix(note_actionbar): add invisible label to stabilize section width ¯\_(ツ)_/¯") Signed-off-by: William Casarin --- crates/notedeck_ui/src/note/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/notedeck_ui/src/note/mod.rs b/crates/notedeck_ui/src/note/mod.rs index 323984e5..0fae0b00 100644 --- a/crates/notedeck_ui/src/note/mod.rs +++ b/crates/notedeck_ui/src/note/mod.rs @@ -783,7 +783,11 @@ fn render_note_actionbar( i18n: &mut Localization, ) -> egui::InnerResponse> { ui.horizontal(|ui| { - ui.label(RichText::new("").text_style(egui::TextStyle::Small)); + // NOTE(jb55): without this we get a weird artifact where + // there subsequent lines start sinking leftward off the screen. + // question: WTF? question 2: WHY? + ui.allocate_space(egui::vec2(0.0, 0.0)); + ui.set_min_height(26.0); ui.spacing_mut().item_spacing.x = 24.0;