ui/note: simplify weird hack and make note of it

Fixes: https://github.com/damus-io/notedeck/issues/842
Fixes: f2e01f0e40 ("fix(note_actionbar): add invisible label to stabilize section width ¯\_(ツ)_/¯")
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-29 10:12:52 -07:00
parent 1fabd347ca
commit 2a85ee562c

View File

@@ -783,7 +783,11 @@ fn render_note_actionbar(
i18n: &mut Localization,
) -> egui::InnerResponse<Option<NoteAction>> {
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;