From a8f3f584a06bdf1e4410a0d2f11f3321f9363c9e Mon Sep 17 00:00:00 2001 From: Bhaskar Shankarling Date: Tue, 17 Nov 2020 04:08:33 +0530 Subject: [PATCH] align command palette prefix > to left when visible (#8279) Fixes the clear button to clear the typed command not clickable in the command palette. - From the primary investigation it looked like the `TextBlock` element introduced in #7935 was somehow blocking (appearing on top of) the clear button. - It was also blocking the command palette input field from being able to access which was preventing the text in the input field from being selected and the cursor would still show as `pointer` cursor instead of a `text selection` cursor - Adding `HorizontalAlignment="Left"` property to the above-mentioned `TextBlock` element fixed the issue. ## Validation Steps Performed - Created the Dev build for `x64` in Visual Studio and verified the functionality manually. Closes #8220 --- src/cascadia/TerminalApp/CommandPalette.xaml | 61 ++++++++++---------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/src/cascadia/TerminalApp/CommandPalette.xaml b/src/cascadia/TerminalApp/CommandPalette.xaml index b1dded589..680a6be37 100644 --- a/src/cascadia/TerminalApp/CommandPalette.xaml +++ b/src/cascadia/TerminalApp/CommandPalette.xaml @@ -178,6 +178,7 @@ the MIT License. See LICENSE in the project root for license information. --> x:Name="_prefixCharacter" Margin="16,16,0,-8" FontSize="14" + HorizontalAlignment="Left" Visibility="{x:Bind PrefixCharacter, Mode=OneWay, Converter={StaticResource ParentCommandVisibilityConverter}}" @@ -185,35 +186,35 @@ the MIT License. See LICENSE in the project root for license information. --> > - - - - - - + + + + + + Grid.Column="1" HorizontalAlignment="Left" Text="{x:Bind HighlightedName, Mode=OneWay}"/> - +