❇️ style(ModelSpecs): optimize for Long/Chinese name and mobile styling (#2731)

* style: hide nav toggle for mobile

* ❇️ style: optimize for Long/Chinese `modelSpec` name and mobile styling
This commit is contained in:
Danny Avila 2024-05-15 09:53:00 -04:00 committed by GitHub
parent fc9368e0e7
commit 4a5d06a774
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View file

@ -70,8 +70,10 @@ export default function ModelSpecsMenu({ modelSpecs }: { modelSpecs: TModelSpec[
return (
<Root>
<MenuButton
primaryText={selected?.label ?? ''}
selected={selected}
className="min-h-11"
textClassName="block items-center justify-start text-xs md:text-base whitespace-nowrap max-w-64 overflow-hidden shrink-0 text-ellipsis"
primaryText={selected?.label ?? ''}
endpointsConfig={endpointsConfig}
/>
<Portal>