Skip to content

Commit e394861

Browse files
committed
fix(app): strengthen command selection
1 parent 8cdda3d commit e394861

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎packages/app/src/composer/editor/editor.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
[data-color-scheme="dark"] [data-component="new-session"] [data-component="composer"] {
77
background: var(--v2-background-bg-layer-01);
88
}
9+
10+
[data-color-scheme="dark"] [data-component="composer-suggestions"] [data-active] {
11+
background: var(--v2-alpha-light-10);
12+
}

‎packages/app/src/composer/editor/editor.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ export function ComposerEditorPopover(props: {
692692
}) {
693693
return (
694694
<div
695+
data-component="composer-suggestions"
695696
class="absolute inset-x-0 -top-2 z-40 flex max-h-80 -translate-y-full flex-col overflow-auto rounded-xl bg-v2-background-bg-base p-2 shadow-[var(--v2-elevation-raised)] no-scrollbar"
696697
onMouseDown={(event) => event.preventDefault()}
697698
>
@@ -720,6 +721,7 @@ export function ComposerEditorPopover(props: {
720721
<button
721722
type="button"
722723
data-suggestion-id={item.id}
724+
data-active={props.activeID === item.id ? "" : undefined}
723725
class="flex w-full items-center gap-2 rounded-md px-2 py-1 text-start hover:bg-v2-overlay-simple-overlay-hover"
724726
classList={{ "bg-v2-overlay-simple-overlay-hover": props.activeID === item.id }}
725727
onPointerMove={() => props.onActiveChange(item)}

‎packages/app/src/shell/commands/dialog.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
outline: none;
123123
}
124124

125+
[data-color-scheme="dark"] .command-palette-row:is([data-active], :focus-visible) {
126+
background: var(--v2-alpha-light-10);
127+
}
128+
125129
.command-palette-row-main {
126130
display: flex;
127131
min-width: 0;

0 commit comments

Comments
 (0)