gui: set max view width on model select
This commit is contained in:
parent
f63fd5d83c
commit
3289c21f1b
2 changed files with 6 additions and 3 deletions
|
|
@ -96,11 +96,11 @@ function InputToolbar(props: InputToolbarProps) {
|
|||
isHidden={props.hidden}
|
||||
onClick={props.onClick}
|
||||
id="input-toolbar"
|
||||
className="hidden xs:flex text-gray-400 transition-colors duration-200"
|
||||
className="hidden xs:flex "
|
||||
>
|
||||
<div className="flex gap-2 items-center whitespace-nowrap justify-start">
|
||||
<ModelSelect />
|
||||
<div className="items-center hidden xs:flex gap-1">
|
||||
<div className="items-center hidden xs:flex gap-1 text-gray-400 transition-colors duration-200">
|
||||
{supportsImages && (
|
||||
<>
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -328,7 +328,10 @@ function ModelSelect() {
|
|||
/>
|
||||
</div>
|
||||
</StyledListboxButton>
|
||||
<StyledListboxOptions showAbove={showAbove} className="z-50">
|
||||
<StyledListboxOptions
|
||||
showAbove={showAbove}
|
||||
className="z-50 max-w-[90vw]"
|
||||
>
|
||||
<div className={`max-h-[${MAX_HEIGHT_PX}px]`}>
|
||||
{sortedOptions.map((option, idx) => (
|
||||
<ModelOption
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue