mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-20 09:54:19 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user