From 105a9aa1a1830648a32ae285f751b4078c8ac2b2 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 7 Aug 2024 09:41:37 +0700 Subject: [PATCH] chore": update minor UI (#3281) * chore: update minor and missing ui * chore: update ui import model * 0.5.0-30 --------- Co-authored-by: Van Pham <64197333+Van-QA@users.noreply.github.com> --- electron/resources/version.txt | 2 +- .../SystemMonitor/TableActiveModel/index.tsx | 2 +- .../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 ++++-- web/screens/Settings/Appearance/index.tsx | 5 +++++ .../ModelDownloadRow/index.tsx | 2 +- .../ModelSegmentInfo/index.tsx | 6 +++--- .../HuggingFaceRepoDetailModal/index.tsx | 9 +++++---- 12 files changed, 45 insertions(+), 23 deletions(-) diff --git a/electron/resources/version.txt b/electron/resources/version.txt index 88fa1cce0..5dd5d632f 100644 --- a/electron/resources/version.txt +++ b/electron/resources/version.txt @@ -1 +1 @@ -0.5.0-29 +0.5.0-30 diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/TableActiveModel/index.tsx index 94abec4b7..b320a80ad 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) => (
= ({
- + {addThousandSeparator(downloads)} @@ -135,7 +135,7 @@ const DownloadContainer: React.FC = ({ Use ) : downloadState != null ? ( -
@@ -70,7 +70,9 @@ const HfListModel: React.FC = ({ modelHandle }) => {
{item.rfilename}
- {toGibibytes(item.fileSize)} + + {toGibibytes(item.fileSize)} + = ({ ]) return ( -
+
{downloadedModel ? ( ) : downloadState != null ? ( - ) : ( - + )}
) diff --git a/web/screens/HubScreen2/components/HubModelCard.tsx b/web/screens/HubScreen2/components/HubModelCard.tsx index 8a87efaee..3a1e810ed 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 3027dad09..fb9747889 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 3669fd31a..f6fcb5b06 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)} diff --git a/web/screens/Settings/Appearance/index.tsx b/web/screens/Settings/Appearance/index.tsx index c7718e77f..22bb8d8be 100644 --- a/web/screens/Settings/Appearance/index.tsx +++ b/web/screens/Settings/Appearance/index.tsx @@ -67,16 +67,21 @@ export default function AppearanceOptions() {
Interface theme
+

+ Translucent option is only available for some theme +