From 66fd50ac607bfe9ee2f3839cef84c2d5536e2940 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Tue, 6 Aug 2024 22:36:50 +0700 Subject: [PATCH 1/3] chore: update minor and missing ui --- .../HubScreen2/components/BuiltInModelCard.tsx | 4 ++-- .../HubScreen2/components/HfListModel.tsx | 18 +++++++++++++----- .../HubScreen2/components/HubModelCard.tsx | 2 +- .../components/HuggingFaceModelCard.tsx | 2 +- .../HubScreen2/components/ListModel.tsx | 10 ++++++++-- .../HubScreen2/components/SliderItem.tsx | 6 ++++-- 6 files changed, 29 insertions(+), 13 deletions(-) diff --git a/web/screens/HubScreen2/components/BuiltInModelCard.tsx b/web/screens/HubScreen2/components/BuiltInModelCard.tsx index 9be5d86d66..f5b35f3818 100644 --- a/web/screens/HubScreen2/components/BuiltInModelCard.tsx +++ b/web/screens/HubScreen2/components/BuiltInModelCard.tsx @@ -57,7 +57,7 @@ const BuiltInModelCard: React.FC = ({
- + {addThousandSeparator(downloads)} @@ -135,7 +135,7 @@ const DownloadContainer: React.FC = ({ Use ) : downloadState != null ? ( - ) : downloadState != null ? ( - ) : ( - + )}
) diff --git a/web/screens/HubScreen2/components/HubModelCard.tsx b/web/screens/HubScreen2/components/HubModelCard.tsx index 8a87efaee3..3a1e810ed9 100644 --- a/web/screens/HubScreen2/components/HubModelCard.tsx +++ b/web/screens/HubScreen2/components/HubModelCard.tsx @@ -172,7 +172,7 @@ const HubModelCard: React.FC = ({ name, downloads, model }) => { > {actionLabel} - + {addThousandSeparator(downloads)} diff --git a/web/screens/HubScreen2/components/HuggingFaceModelCard.tsx b/web/screens/HubScreen2/components/HuggingFaceModelCard.tsx index 3027dad09e..fb9747889c 100644 --- a/web/screens/HubScreen2/components/HuggingFaceModelCard.tsx +++ b/web/screens/HubScreen2/components/HuggingFaceModelCard.tsx @@ -146,7 +146,7 @@ const DownloadContainer: React.FC = ({ Use ) : downloadState != null ? ( - ) : downloadState != null ? ( - ) : ( - + )} ) diff --git a/web/screens/HubScreen2/components/SliderItem.tsx b/web/screens/HubScreen2/components/SliderItem.tsx index 3669fd31aa..f6fcb5b067 100644 --- a/web/screens/HubScreen2/components/SliderItem.tsx +++ b/web/screens/HubScreen2/components/SliderItem.tsx @@ -53,11 +53,13 @@ const SliderItem: React.FC = ({ model }) => { {shouldShowOwnerLogo && ( {model.author} )} - {model.author} + + {model.author} +
- + {toGibibytes(model.size)} From 2746ac889c5da83414dd3b7d0775310a21cfacc3 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Tue, 6 Aug 2024 23:23:32 +0700 Subject: [PATCH 2/3] chore: update ui import model --- .../BottomPanel/SystemMonitor/TableActiveModel/index.tsx | 2 +- web/screens/Settings/Appearance/index.tsx | 5 +++++ .../ModelDownloadRow/index.tsx | 2 +- .../ModelSegmentInfo/index.tsx | 6 +++--- .../Settings/HuggingFaceRepoDetailModal/index.tsx | 9 +++++---- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx index 94abec4b79..b320a80ad2 100644 --- a/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx +++ b/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx @@ -38,7 +38,7 @@ const TableActiveModel: React.FC = () => {
- + {Column.map((col, i) => (
Interface theme
+

+ Translucent option is only available for some theme +