diff --git a/src/layouts/sider-menu.tsx b/src/layouts/sider-menu.tsx index 35e8053e..5b8b36a8 100644 --- a/src/layouts/sider-menu.tsx +++ b/src/layouts/sider-menu.tsx @@ -70,7 +70,7 @@ const useStyles = createStyles(({ css, token }) => { } `, menuItemContent: css` - margin: 4px; + margin: 2px; border-radius: 4px; overflow: hidden; `, diff --git a/src/pages/_components/no-result.tsx b/src/pages/_components/no-result.tsx index 67b37ffe..f00bcefc 100644 --- a/src/pages/_components/no-result.tsx +++ b/src/pages/_components/no-result.tsx @@ -86,7 +86,7 @@ const NoResult: React.FC< description={ {!hasFilters && ( - + {props.title} )} diff --git a/src/pages/llmodels/components/instance-item.tsx b/src/pages/llmodels/components/instance-item.tsx index b66dcaeb..a8aac602 100644 --- a/src/pages/llmodels/components/instance-item.tsx +++ b/src/pages/llmodels/components/instance-item.tsx @@ -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 (