commit befce76a90c9751a82588532b075f6896106984d
parent ac85bdc21d002a117a6cc776b2014da2f01dff17
Author: Fernando LoĢpez Guevara <fernando.lguevara@gmail.com>
Date: Tue, 15 Jul 2025 09:55:42 -0300
feat(profile): add tooltip on copy npub
Diffstat:
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/crates/notedeck_columns/src/ui/profile/mod.rs b/crates/notedeck_columns/src/ui/profile/mod.rs
@@ -304,11 +304,13 @@ fn copy_key_widget(pfp_rect: &egui::Rect) -> impl egui::Widget + '_ {
pfp_rect.center_bottom(),
egui::vec2(48.0, 28.0),
));
- let resp = ui.interact(
- copy_key_rect,
- ui.id().with("custom_painter"),
- Sense::click(),
- );
+ let resp = ui
+ .interact(
+ copy_key_rect,
+ ui.id().with("custom_painter"),
+ Sense::click(),
+ )
+ .on_hover_text("Copy npub to clipboard");
let copy_key_rounding = CornerRadius::same(100);
let fill_color = if resp.hovered() {