diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 143fb4f..9fcafee 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -44,7 +44,7 @@ "resizable": true, "title": "NeoHtop", "width": 1280, - "minWidth": 1120, + "minWidth": 1000, "minHeight": 700, "titleBarStyle": "Overlay", "hiddenTitle": true, diff --git a/src/lib/components/toolbar/ColumnToggle.svelte b/src/lib/components/toolbar/ColumnToggle.svelte index e055a74..6a99a90 100644 --- a/src/lib/components/toolbar/ColumnToggle.svelte +++ b/src/lib/components/toolbar/ColumnToggle.svelte @@ -79,6 +79,7 @@ border-radius: 6px; cursor: pointer; transition: all 0.2s ease; + min-width: 89px; } .btn-toggle:hover { diff --git a/src/lib/components/toolbar/ToolBar.svelte b/src/lib/components/toolbar/ToolBar.svelte index c740517..c191653 100644 --- a/src/lib/components/toolbar/ToolBar.svelte +++ b/src/lib/components/toolbar/ToolBar.svelte @@ -22,6 +22,9 @@ }>; export let refreshRate: number; export let isFrozen: boolean; + + let windowWidth = window.innerWidth; + window.onresize = () => (windowWidth = window.innerWidth);