mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 15:02:02 +00:00
🪟 refactor: Use the Embedded Input Variant in the Command Popovers (#16901)
This commit is contained in:
parent
c3d94a2cdb
commit
4577f481b2
4 changed files with 6 additions and 19 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue