Make slash command descriptions consistent (#18595)
This PR adds a description constant in most of the slash command files so that both the editor _and_ footer pickers use the same string. In terms of copywriting, I did some tweaking to reduce the longer ones a bit. Also standardized them all to use sentence case, as opposed to each instance using a different convention. The editor picker needs more work, though, given the arguments and descriptions are being cut at the moment. This should happen in a follow-up! <img width="900" alt="Screenshot 2024-10-01 at 7 25 19 PM" src="https://github.com/user-attachments/assets/e8759eff-0de9-4a4d-a026-366d85507b3c"> --- Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
82d3fcdf4b
commit
8a18c94f33
14 changed files with 29 additions and 27 deletions
|
@ -184,7 +184,7 @@ impl PickerDelegate for SlashCommandDelegate {
|
|||
h_flex()
|
||||
.group(format!("command-entry-label-{ix}"))
|
||||
.w_full()
|
||||
.min_w(px(220.))
|
||||
.min_w(px(250.))
|
||||
.child(
|
||||
v_flex()
|
||||
.child(
|
||||
|
@ -203,7 +203,9 @@ impl PickerDelegate for SlashCommandDelegate {
|
|||
div()
|
||||
.font_buffer(cx)
|
||||
.child(
|
||||
Label::new(args).size(LabelSize::Small),
|
||||
Label::new(args)
|
||||
.size(LabelSize::Small)
|
||||
.color(Color::Muted),
|
||||
)
|
||||
.visible_on_hover(format!(
|
||||
"command-entry-label-{ix}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue