Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

svelte: Show correct keyboard shortcut on Linux in "search files" button#62729

Merged
fkling merged 1 commit intomainfrom
fkling/62725-keyboard-shortcut
May 16, 2024
Merged

svelte: Show correct keyboard shortcut on Linux in "search files" button#62729
fkling merged 1 commit intomainfrom
fkling/62725-keyboard-shortcut

Conversation

@fkling
Copy link
Contributor

@fkling fkling commented May 16, 2024

Fixes #62725

This commit updates the repo sidebar to show the Linux specific keyboard shorcut for searching files.

I initially was just rendering it as a string, but I think makes sense to have some spacing between the individual parts, just like it was done in the sidebar. So I added a new component for rendering platform-specific keyboard shortcuts that applies this style.

The current code adds some negative padding, I don't know if that's really necessary.

Before After
2024-05-16_15-39 2024-05-16_15-40
2024-05-16_15-42 2024-05-16_15-42_1

(the alignment looks weird on my system due to the font being used)

Test plan

Manual inspection

This commit updates the repo sidebar to show the Linux specific keyboard
shorcut for searching files.

I initially was just rendering it as a string, but I think makes sense
to have some spacing between the individual parts, just like it was done
in the sidebar. So I added a new component for rendering
platform-specific keyboard shortcuts that applies this style.

The current code adds some negative padding, I don't know if that's
really necessary.
@fkling fkling added the team/code-search Issues owned by the code search team label May 16, 2024
@fkling fkling requested a review from vovakulikov May 16, 2024 13:41
@fkling fkling self-assigned this May 16, 2024
@cla-bot cla-bot bot added the cla-signed label May 16, 2024
@fkling fkling merged commit 3f5028c into main May 16, 2024
@fkling fkling deleted the fkling/62725-keyboard-shortcut branch May 16, 2024 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/code-search Issues owned by the code search team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

svelte: "Search files" button/input shows incorrect keyboard shortcut on Linux

2 participants