diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index 361ae658c..892535717 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -266,12 +266,36 @@ const DropdownListSidebar = ({ value={x.id} className={twMerge( x.id === selectedModel?.id && 'bg-secondary', - 'my-0 pb-8 pt-4' + 'my-0 py-2' )} > -
- {x.name} -
+
+
+

{x.name}

+
+

{x.id}

+ {clipboard.copied && copyId === x.id ? ( + + ) : ( + { + clipboard.copy(x.id) + setCopyId(x.id) + }} + /> + )} +
+
+
{toGibibytes(x.metadata.size)} @@ -281,25 +305,6 @@ const DropdownListSidebar = ({
-
- {x.id} - {clipboard.copied && copyId === x.id ? ( - - ) : ( - { - clipboard.copy(x.id) - setCopyId(x.id) - }} - /> - )} -
)) )} diff --git a/web/containers/Layout/BottomBar/SystemMonitor/TableActiveModel/index.tsx b/web/containers/Layout/BottomBar/SystemMonitor/TableActiveModel/index.tsx index 8bcccdba2..afdb553f4 100644 --- a/web/containers/Layout/BottomBar/SystemMonitor/TableActiveModel/index.tsx +++ b/web/containers/Layout/BottomBar/SystemMonitor/TableActiveModel/index.tsx @@ -34,7 +34,7 @@ const TableActiveModel = () => { return ( {col} @@ -46,17 +46,27 @@ const TableActiveModel = () => { - {activeModel.name} - {activeModel.id} - + +

{activeModel.name}

+ + +

{activeModel.id}

+ + {toGibibytes(activeModel.metadata.size)} - + v{activeModel.version} - +
{/* CPU / GPU switching */} - {!isMac && ( + {isMac && (
@@ -223,73 +223,76 @@ const Advanced = () => { for further assistance.

- {gpuList.length > 0 && !gpuEnabled && ( + +
+ {gpuList.length > 0 && !gpuEnabled && ( + + + + + + + Disabling NVIDIA GPU Acceleration may result in reduced + performance. It is recommended to keep this enabled for + optimal user experience. + + + + + )} + - { + if (e === true) { + saveSettings({ runMode: 'gpu' }) + setGpuEnabled(true) + snackbar({ + description: + 'Successfully turned on GPU Acceleration', + type: 'success', + }) + } else { + saveSettings({ runMode: 'cpu' }) + setGpuEnabled(false) + snackbar({ + description: + 'Successfully turned off GPU Acceleration', + type: 'success', + }) + } + // Stop any running model to apply the changes + if (e !== gpuEnabled) stopModel() + }} /> - - - Disabling NVIDIA GPU Acceleration may result in reduced - performance. It is recommended to keep this enabled for - optimal user experience. - - - + {gpuList.length === 0 && ( + + + Your current device does not have a compatible GPU for + monitoring. To enable GPU monitoring, please ensure your + device has a supported Nvidia or AMD GPU with updated + drivers. + + + + )} - )} - - - - { - if (e === true) { - saveSettings({ runMode: 'gpu' }) - setGpuEnabled(true) - snackbar({ - description: - 'Successfully turned on GPU Acceleration', - type: 'success', - }) - } else { - saveSettings({ runMode: 'cpu' }) - setGpuEnabled(false) - snackbar({ - description: - 'Successfully turned off GPU Acceleration', - type: 'success', - }) - } - // Stop any running model to apply the changes - if (e !== gpuEnabled) stopModel() - }} - /> - - {gpuList.length === 0 && ( - - - Your current device does not have a compatible GPU for - monitoring. To enable GPU monitoring, please ensure your - device has a supported Nvidia or AMD GPU with updated - drivers. - - - - )} - +