anim: animate on compose button hide

before we were just nuking it

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-11 14:23:38 -07:00
parent ade6f57fd5
commit 6596e89e29

View File

@@ -592,7 +592,6 @@ fn hovering_post_button(
let darkmode = ui.ctx().style().visuals.dark_mode;
// only show the compose button on profile pages and on home
if should_show_compose {
let compose_resp = ui.put(rect, ui::post::compose_note_button(darkmode));
if compose_resp.hovered() {
notedeck_ui::show_pointer(ui);
@@ -605,7 +604,6 @@ fn hovering_post_button(
SidePanelAction::ComposeNote,
);
}
}
}
/// Should we show the compose button? When in threads we should hide it, etc