🪟 refactor: Use the Embedded Input Variant in the Command Popovers (#16901)

This commit is contained in:
Marco Beretta 2026-10-08 20:52:42 +02:00 • committed by GitHub
parent c3d94a2cdb
commit 4577f481b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 19 deletions

View file

@ -221,7 +221,8 @@ function PromptsCommand({
<Input
ref={initInputRef}
placeholder={localize('com_ui_command_usage_placeholder')}
className="bg-surface-tertiary-alt mb-1 h-auto w-full rounded-none border-0 p-2"
variant="embedded"
className="mb-1"
autoComplete="off"
value={searchValue}
onKeyDown={(e) => {

View file

@ -290,7 +290,8 @@ function SkillsCommandContent({
<Input
ref={initInputRef}
placeholder={localize('com_ui_skills_command_placeholder')}
className="bg-surface-tertiary-alt mb-1 h-auto w-full rounded-none border-0 p-2"
variant="embedded"
className="mb-1"
autoComplete="off"
value={searchValue}
onKeyDown={(e) => {

View file

@ -32,7 +32,7 @@ export default function Button({
<div className="flex w-full items-center justify-center gap-2">
{children}
{shortcutDisplay && (
<span className="border-border-light text-text-secondary hidden rounded-md border px-1.5 py-0.5 text-[10px] leading-none md:inline-flex">
<span className="border-border-light text-text-secondary text-3xs hidden rounded-md border px-1.5 py-0.5 leading-none md:inline-flex">
{shortcutDisplay}
</span>
)}

View file

@ -148,21 +148,11 @@
"count": 3
}
},
"client/src/components/Chat/Input/PromptsCommand.tsx": {
"shadcn/no-restyle": {
"count": 4
}
},
"client/src/components/Chat/Input/QuoteButton.tsx": {
"shadcn/no-inline-styles": {
"count": 1
}
},
"client/src/components/Chat/Input/SkillsCommand.tsx": {
"shadcn/no-restyle": {
"count": 4
}
},
"client/src/components/Chat/Input/TokenUsage/Breakdown.tsx": {
"shadcn/no-restyle": {
"count": 10
@ -627,11 +617,6 @@
"count": 4
}
},
"client/src/components/Input/Generations/Button.tsx": {
"shadcn/no-arbitrary-values": {
"count": 1
}
},
"client/src/components/Input/Generations/Regenerate.tsx": {
"shadcn/no-restyle": {
"count": 1
@ -1401,4 +1386,4 @@
"count": 2
}
}
}
}