CmdPal: Limiting length of primary/secondary commands (#41396)

Closes #41365

Limits width of primary/secondary commands to 160 and trims with
ellipsis.
This commit is contained in:
Michael Jolley
2025-09-26 12:04:47 -05:00
committed by GitHub
parent 3bdb5305ba
commit 744415f20a
3 changed files with 22 additions and 4 deletions

View File

@@ -219,12 +219,18 @@ public partial class EvilSamplesPage : ListPage
}
],
},
new ListItem(
new ToastCommand("Primary command invoked", MessageState.Info) { Name = "H W\r\nE O\r\nL R\r\nL L\r\nO D", Icon = new IconInfo("\uF146") })
{
Title = "noop third command test",
Icon = new IconInfo("\uE712"), // "More" dots
},
new ListItem(new EvilDuplicateRequestedShortcut())
{
Title = "Evil keyboard shortcuts",
Subtitle = "Two commands with the same shortcut and more...",
Icon = new IconInfo("\uE765"),
}
},
];
public EvilSamplesPage()