fix: overlap text model selector and loading (#3757)

This commit is contained in:
Faisal Amir 2024-10-03 20:19:07 +07:00 committed by GitHub
parent 0bc2f82ec0
commit 81110da8ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export default function ModelStart() {
style={{ width: `${loader}%` }}
data-testid="model-loader"
/>
<span className="relative z-10">
<span className="relative z-10 line-clamp-1 max-w-[300px]">
{stateModel.state === 'start' ? 'Starting' : 'Stopping'}
&nbsp;model&nbsp;
{stateModel.model?.id}

View File

@ -318,7 +318,9 @@ const ModelDropdown = ({
)}
onClick={() => setOpen(!open)}
>
<span className="line-clamp-1 ">{selectedModel?.name}</span>
<span className="line-clamp-1 max-w-[286px]">
{selectedModel?.name}
</span>
</Badge>
) : (
<Input