+
-
diff --git a/desktop/src/components/layout/TabBar.tsx b/desktop/src/components/layout/TabBar.tsx
index 3d3d0371..66363b6b 100644
--- a/desktop/src/components/layout/TabBar.tsx
+++ b/desktop/src/components/layout/TabBar.tsx
@@ -4,6 +4,7 @@ import { useChatStore } from '../../stores/chatStore'
import { useTranslation } from '../../i18n'
const TAB_WIDTH = 180
+const isTauri = typeof window !== 'undefined' && ('__TAURI_INTERNALS__' in window || '__TAURI__' in window)
export function TabBar() {
const tabs = useTabStore((s) => s.tabs)
@@ -96,10 +97,13 @@ export function TabBar() {
}
}
- if (tabs.length === 0) return null
+ if (tabs.length === 0) {
+ // Still need drag region space in Tauri even with no tabs
+ return isTauri ? : null
+ }
return (
-
+
{canScrollLeft && (