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

This commit is contained in:
Faisal Amir 2024-10-02 15:08:59 +07:00 committed by GitHub
parent 2122adf99f
commit 27c6ac6c8d
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}%` }} style={{ width: `${loader}%` }}
data-testid="model-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'} {stateModel.state === 'start' ? 'Starting' : 'Stopping'}
&nbsp;model&nbsp; &nbsp;model&nbsp;
{stateModel.model?.id} {stateModel.model?.id}

View File

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