fix(style): do not display draft model after done

This commit is contained in:
jialin
2025-11-05 10:02:25 +08:00
parent 4c22d08da5
commit 333b430b97
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ const useStyles = createStyles(({ css, token }) => {
}
`,
menuItemContent: css`
margin: 4px;
margin: 2px;
border-radius: 4px;
overflow: hidden;
`,
+1 -1
View File
@@ -86,7 +86,7 @@ const NoResult: React.FC<
description={
<Description>
{!hasFilters && (
<Typography.Text style={{ fontSize: '18px', fontWeight: 500 }}>
<Typography.Text style={{ fontSize: '16px', fontWeight: 500 }}>
{props.title}
</Typography.Text>
)}
@@ -210,10 +210,11 @@ const RenderWorkerDownloading = (props: {
!severList.length ||
backend === backendOptionsMap.llamaBox;
const isDragftModelNotDownloading =
instanceData.draft_model_download_progress <= 0;
const isDraftModeNotDownloading =
!instanceData.draft_model_download_progress ||
instanceData.draft_model_download_progress >= 100;
if (isWorkerNotDownloading && isDragftModelNotDownloading) {
if (isWorkerNotDownloading && isDraftModeNotDownloading) {
return null;
}
return (