Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add tooltip to submit feedback button

Joseph Lyons654ee48feb89
diff --git a/crates/feedback/src/feedback_editor.rs b/crates/feedback/src/feedback_editor.rs
index 932fc64f311..21932107e48 100644
--- a/crates/feedback/src/feedback_editor.rs
+++ b/crates/feedback/src/feedback_editor.rs
@@ -481,6 +481,13 @@ impl View for SubmitFeedbackButton {
.aligned()
.contained()
.with_margin_left(theme.feedback.button_margin)
+ .with_tooltip::<Self, _>(
+ 0,
+ "cmd-s".into(),
+ Some(Box::new(SubmitFeedback)),
+ theme.tooltip.clone(),
+ cx,
+ )
.boxed()
}
}