diff --git a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx
index 14055b535..3dfdff2f9 100644
--- a/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx
+++ b/web/containers/Layout/BottomPanel/SystemMonitor/index.tsx
@@ -79,7 +79,7 @@ const SystemMonitor = () => {
{showSystemMonitorPanel && (
{
{ramUtilitized}%
-
{gpus.length > 0 && (
{gpus.map((gpu, index) => {
diff --git a/web/screens/Thread/ThreadCenterPanel/index.tsx b/web/screens/Thread/ThreadCenterPanel/index.tsx
index 3f74181f7..1f23e9dc5 100644
--- a/web/screens/Thread/ThreadCenterPanel/index.tsx
+++ b/web/screens/Thread/ThreadCenterPanel/index.tsx
@@ -147,6 +147,20 @@ const ThreadCenterPanel = () => {
const showSystemMonitorPanel = useAtomValue(showSystemMonitorPanelAtom)
+ const [height, setHeight] = useState
(0)
+
+ useEffect(() => {
+ if (showSystemMonitorPanel) {
+ const element = document.querySelector('.system-monitor-panel')
+
+ if (element) {
+ setHeight(element.clientHeight) // You can also use offsetHeight if needed
+ }
+ } else {
+ setHeight(0)
+ }
+ }, [showSystemMonitorPanel])
+
return (