commit 3d8018bb9a70e318d95316e6f4f9302bc9452153 parent 361d0e370839f0b5aa9e5f9019797603760c1e30 Author: kernelkind <kernelkind@gmail.com> Date: Wed, 13 Aug 2025 19:06:18 -0400 make compose button animate horiz rather than vert it animating over the toolbar made the bar dissapear for some reason Signed-off-by: kernelkind <kernelkind@gmail.com> Diffstat:
| M | 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 @@ -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;