style: status tooltip
This commit is contained in:
@@ -75,7 +75,13 @@ const StatusTag: React.FC<StatusTagProps> = ({
|
||||
|
||||
<SimpleBar style={{ maxHeight: 200 }}>
|
||||
<div
|
||||
style={{ width: 'max-content', maxWidth: 250, paddingInline: 10 }}
|
||||
style={{
|
||||
width: 'max-content',
|
||||
maxWidth: 250,
|
||||
paddingInline: 10,
|
||||
whiteSpace: 'pre-wrap',
|
||||
wordBreak: 'break-word'
|
||||
}}
|
||||
>
|
||||
{statusValue.message}
|
||||
</div>
|
||||
|
||||
@@ -461,7 +461,10 @@ const Models: React.FC<ModelsProps> = ({
|
||||
return `${modelSourceMap.huggingface}/${record.huggingface_repo_id}`;
|
||||
}
|
||||
if (record.source === modelSourceMap.local_path_value) {
|
||||
return `${modelSourceMap.local_path}${record.local_path}`;
|
||||
const localPath = _.startsWith(record.local_path, '/')
|
||||
? record.local_path
|
||||
: `/${record.local_path}`;
|
||||
return `${modelSourceMap.local_path}${localPath}`;
|
||||
}
|
||||
if (record.source === modelSourceMap.ollama_library_value) {
|
||||
return `${modelSourceMap.ollama_library}/${record.ollama_library_model_name}`;
|
||||
|
||||
Reference in New Issue
Block a user