From 3d8018bb9a70e318d95316e6f4f9302bc9452153 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Wed, 13 Aug 2025 19:06:18 -0400 Subject: [PATCH] make compose button animate horiz rather than vert it animating over the toolbar made the bar dissapear for some reason Signed-off-by: kernelkind --- crates/notedeck_columns/src/app.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/notedeck_columns/src/app.rs b/crates/notedeck_columns/src/app.rs index 300e910b..3a6647a1 100644 --- a/crates/notedeck_columns/src/app.rs +++ b/crates/notedeck_columns/src/app.rs @@ -659,8 +659,10 @@ fn hovering_post_button( let button_y = ui .ctx() .animate_bool_responsive(btn_id, should_show_compose); - rect.min.x = rect.max.x - if is_narrow(ui.ctx()) { 60.0 } else { 100.0 }; - rect.min.y = rect.max.y - 100.0 * button_y; + + rect.min.x = rect.max.x - (if is_narrow(ui.ctx()) { 60.0 } else { 100.0 } * button_y); + rect.min.y = rect.max.y - 100.0; + rect.max.x += 48.0 * (1.0 - button_y); let darkmode = ui.ctx().style().visuals.dark_mode;