Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add kbd hint#1495

Open
venki1402 wants to merge 1 commit into
cp-algorithms:maincp-algorithms/cp-algorithms:mainfrom
venki1402:va/fix#1467venki1402/cp-algorithms:va/fix#1467Copy head branch name to clipboard
Open

feat: add kbd hint#1495
venki1402 wants to merge 1 commit into
cp-algorithms:maincp-algorithms/cp-algorithms:mainfrom
venki1402:va/fix#1467venki1402/cp-algorithms:va/fix#1467Copy head branch name to clipboard

Conversation

@venki1402

@venki1402 venki1402 commented Aug 11, 2025

Copy link
Copy Markdown
Screenshot 2025-08-11 at 11 51 07 AM

@adamant-pwn adamant-pwn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the pull request! It generally looks good, but I'd like to clarify some things first (see comments).

Comment thread src/stylesheets/extra.css
}

/* Only show on wider viewports where the inline search is visible */
@media (max-width: 959px) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this value defined? Can we somehow take it from the theme named constants?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure regd. that, can we take 60em instead?

Comment thread src/stylesheets/extra.css
Comment on lines +88 to +96
justify-content: center;
height: 20px;
padding: 0 6px;
border-radius: 4px;
border: 1px solid var(--md-default-fg-color--lightest, rgba(0,0,0,.2));
background: var(--md-default-bg-color, #fff);
color: var(--md-default-fg-color, rgba(0,0,0,.87));
font: 500 12px/1 var(--md-text-font, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif);
opacity: .72;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem to mostly repeat things that are already set in .kbd-hint. I'm not that well versed in CSS, is this really necessary? Why do we need them as two independent settings?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they’re separate because one is a DOM element and the other is a pseudo-element positioned inside the input. If we want both contexts covered (inside the field on desktop, next to the icon on mobile/when the field is hidden), we need both targets.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by next to the icon on mobile / when the field is hidden? For me, when the field is hidden, the hint is hidden as well?

image

@mhayter

mhayter commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

Any update @venki1402 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat (enhancement) : on event cmd + k -> focus on search bar

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.