From 093a72f46baa3561f4a199e31d10686f7f6b1ebc Mon Sep 17 00:00:00 2001 From: Suyog Tandel Date: Tue, 3 Mar 2026 19:46:32 +0530 Subject: [PATCH] fix(ui): bottom drawer issue when deleting a passkey --- src/ui/views/passkeys.rs | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/ui/views/passkeys.rs b/src/ui/views/passkeys.rs index 2caa5ef..fc5b08c 100644 --- a/src/ui/views/passkeys.rs +++ b/src/ui/views/passkeys.rs @@ -949,16 +949,22 @@ impl PasskeysView { ), ) .child( - Button::new("delete-cred-btn") - .ghost() - .small() + div() + .on_mouse_down(MouseButton::Left, |_, _, cx| { + cx.stop_propagation(); + }) .child( - Icon::default() - .path("icons/trash-2.svg") - .size_4() - .text_color(theme.muted_foreground), - ) - .on_click(delete_listener), + Button::new("delete-cred-btn") + .ghost() + .small() + .child( + Icon::default() + .path("icons/trash-2.svg") + .size_4() + .text_color(theme.muted_foreground), + ) + .on_click(delete_listener), + ), ), ) }