mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
refactor(ModelDropDown.jsx): remove commented out code and simplify model display
This commit is contained in:
parent
f187da3afa
commit
77b46cc1a7
1 changed files with 1 additions and 11 deletions
|
|
@ -43,15 +43,6 @@ function ModelDropDown({
|
||||||
</Listbox.Label>
|
</Listbox.Label>
|
||||||
)}
|
)}
|
||||||
<span className="inline-flex w-full truncate">
|
<span className="inline-flex w-full truncate">
|
||||||
{/* {!showLabel && (
|
|
||||||
<Listbox.Label
|
|
||||||
className="text-xs text-gray-700 dark:text-gray-500 mr-3"
|
|
||||||
id="headlessui-listbox-label-:r1:"
|
|
||||||
data-headlessui-state=""
|
|
||||||
>
|
|
||||||
Model
|
|
||||||
</Listbox.Label>
|
|
||||||
)} */}
|
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex h-6 items-center gap-1 truncate text-sm text-gray-900 dark:text-white',
|
'flex h-6 items-center gap-1 truncate text-sm text-gray-900 dark:text-white',
|
||||||
|
|
@ -59,8 +50,7 @@ function ModelDropDown({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{!showLabel && <span className="text-xs text-gray-700 dark:text-gray-500">Model:</span>}
|
{!showLabel && <span className="text-xs text-gray-700 dark:text-gray-500">Model:</span>}
|
||||||
{`${!showLabel ? '' : ''} ${model}`}
|
{model}
|
||||||
{/* {`${!showLabel ? 'Model: ' : ''} ${model}`} */}
|
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
|
<span className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue