make the model selector popup responsive and wider for bigger screens (#5025)
* make the model selector popup responsive and wider for bigger screens * fix linting issue * use vscode config files to recommend prettier plugin and use it to auto format on save --------- Co-authored-by: Ethan Garber <ethancgarber@gmail.com>
This commit is contained in:
parent
e8ca7f3c1b
commit
abe265ac71
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
.vscode
|
||||
.idea
|
||||
.env
|
||||
.idea
|
||||
|
||||
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
||||
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
@ -359,7 +359,7 @@ const ModelDropdown = ({
|
||||
className={twMerge(
|
||||
'absolute right-0 z-20 mt-2 max-h-80 w-full overflow-hidden rounded-lg border border-[hsla(var(--app-border))] bg-[hsla(var(--app-bg))] shadow-sm',
|
||||
open ? 'flex' : 'hidden',
|
||||
chatInputMode && 'bottom-8 left-0 w-72'
|
||||
chatInputMode && 'bottom-8 left-0 md:w-72 lg:w-96'
|
||||
)}
|
||||
ref={setDropdownOptions}
|
||||
>
|
||||
@ -585,7 +585,7 @@ const ModelDropdown = ({
|
||||
<div className="flex gap-x-2">
|
||||
<p
|
||||
className={twMerge(
|
||||
'max-w-[200px] overflow-hidden truncate whitespace-nowrap',
|
||||
'overflow-hidden truncate whitespace-nowrap md:max-w-[200px] lg:max-w-[300px]',
|
||||
!isDownloaded &&
|
||||
'text-[hsla(var(--text-secondary))]'
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user