chore: use Cow instead of String for tooltips (#2838)
A QoL change to align `Tooltip` with other elements like `Label` Release Notes: - N/A
This commit is contained in:
parent
268f4b1939
commit
ffffbbea1f
13 changed files with 33 additions and 43 deletions
|
@ -66,7 +66,7 @@ impl View for DeployFeedbackButton {
|
|||
})
|
||||
.with_tooltip::<Self>(
|
||||
0,
|
||||
"Send Feedback".into(),
|
||||
"Send Feedback",
|
||||
Some(Box::new(GiveFeedback)),
|
||||
theme.tooltip.clone(),
|
||||
cx,
|
||||
|
|
|
@ -80,7 +80,7 @@ impl View for SubmitFeedbackButton {
|
|||
.with_margin_left(theme.feedback.button_margin)
|
||||
.with_tooltip::<Self>(
|
||||
0,
|
||||
"cmd-s".into(),
|
||||
"cmd-s",
|
||||
Some(Box::new(SubmitFeedback)),
|
||||
theme.tooltip.clone(),
|
||||
cx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue