From c21406ab1a2ee3e9801f2174f49888d794688c8c Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Sat, 18 Nov 2023 19:48:10 +0700 Subject: [PATCH] Fix compatibility content not fully display --- .../ExploreModels/ExploreModelItem/index.tsx | 12 ++++++++-- .../ExploreModels/ModelVersionItem/index.tsx | 23 +++++++++++++------ 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/web/screens/ExploreModels/ExploreModelItem/index.tsx b/web/screens/ExploreModels/ExploreModelItem/index.tsx index 6682c6385..9cbbc248c 100644 --- a/web/screens/ExploreModels/ExploreModelItem/index.tsx +++ b/web/screens/ExploreModels/ExploreModelItem/index.tsx @@ -58,10 +58,18 @@ const ExploreModelItem = forwardRef(({ model }, ref) => {
Compatibility
- + {usecase} - + {toGigabytes(maxRamRequired)} RAM required
diff --git a/web/screens/ExploreModels/ModelVersionItem/index.tsx b/web/screens/ExploreModels/ModelVersionItem/index.tsx index f3120543f..952f364e2 100644 --- a/web/screens/ExploreModels/ModelVersionItem/index.tsx +++ b/web/screens/ExploreModels/ModelVersionItem/index.tsx @@ -2,8 +2,8 @@ import React, { useMemo } from 'react' import { ModelCatalog, ModelVersion } from '@janhq/core/lib/types' -import { Button } from '@janhq/uikit' -import { Badge } from '@janhq/uikit' +import { Button, Badge } from '@janhq/uikit' + import { atom, useAtomValue } from 'jotai' import ModalCancelDownload from '@/containers/ModalCancelDownload' @@ -73,16 +73,25 @@ const ModelVersionItem: React.FC = ({ model, modelVersion }) => { return (
- {modelVersion.name} + + {modelVersion.name} +
- + {usecase} - {`${toGigabytes( - maxRamRequired - )} RAM required`} + + {`${toGigabytes(maxRamRequired)} RAM required`} {toGigabytes(modelVersion.size)}
{downloadButton}