fix(ui): bottom drawer issue when deleting a passkey

This commit is contained in:
Suyog Tandel
2026-03-03 19:46:32 +05:30
parent 2047952b94
commit 093a72f46b
+15 -9
View File
@@ -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),
),
),
)
}