From 5638cd9231c88cb54548da0a9f03eefb0aba0e1f Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 17 Oct 2024 13:48:47 +0700 Subject: [PATCH 1/2] fix: button api playground overlap button and search hub model --- web/screens/Hub/index.tsx | 22 ++++++++++--------- .../LocalServerLeftPanel/index.tsx | 5 +++-- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/web/screens/Hub/index.tsx b/web/screens/Hub/index.tsx index 37adb717c7..8148a6bb5c 100644 --- a/web/screens/Hub/index.tsx +++ b/web/screens/Hub/index.tsx @@ -96,17 +96,19 @@ const HubScreen = () => { {!filteredModels.length ? ( ) : ( -
- { + setSortSelected(value) + }} + options={sortMenus} + /> +
+ + )} - diff --git a/web/screens/LocalServer/LocalServerLeftPanel/index.tsx b/web/screens/LocalServer/LocalServerLeftPanel/index.tsx index ef2c2d76c5..6f5de80ecd 100644 --- a/web/screens/LocalServer/LocalServerLeftPanel/index.tsx +++ b/web/screens/LocalServer/LocalServerLeftPanel/index.tsx @@ -127,9 +127,10 @@ const LocalServerLeftPanel = () => { {serverEnabled ? 'Stop' : 'Start'} Server {serverEnabled && ( - )} From 790d09f0669ced984ec62c9cc7f5d2cbe6564a15 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Fri, 18 Oct 2024 16:01:12 +0700 Subject: [PATCH 2/2] fix: update overlap text responsive tab and conditional render GPU menu --- joi/src/core/Tabs/styles.scss | 1 + web/screens/Settings/Advanced/index.tsx | 7 ++----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/joi/src/core/Tabs/styles.scss b/joi/src/core/Tabs/styles.scss index ce3df013b2..932b8431af 100644 --- a/joi/src/core/Tabs/styles.scss +++ b/joi/src/core/Tabs/styles.scss @@ -35,6 +35,7 @@ flex: 1; height: 38px; display: flex; + white-space: nowrap; color: hsla(var(--text-secondary)); align-items: center; justify-content: center; diff --git a/web/screens/Settings/Advanced/index.tsx b/web/screens/Settings/Advanced/index.tsx index 2c444371a8..bbfe7274cd 100644 --- a/web/screens/Settings/Advanced/index.tsx +++ b/web/screens/Settings/Advanced/index.tsx @@ -211,9 +211,6 @@ const Advanced = () => { saveSettings({ gpusInUse: updatedGpusInUse }) } - const gpuSelectionPlaceHolder = - gpuList.length > 0 ? 'Select GPU' : "You don't have any compatible GPU" - /** * Handle click outside */ @@ -240,7 +237,7 @@ const Advanced = () => { {/* CPU / GPU switching */} - {!isMac && ( + {!isMac && gpuList.length > 0 && (
@@ -326,7 +323,7 @@ const Advanced = () => { value={selectedGpu.join() || ''} className="w-full cursor-pointer" readOnly - placeholder={gpuSelectionPlaceHolder} + placeholder="" suffixIcon={