[PR #8279] align command palette prefix > to left when visible #27162

Open
opened 2026-01-31 09:20:22 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/8279

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8279 **State:** closed **Merged:** Yes --- 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
claunia added the pull-request label 2026-01-31 09:20:22 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27162