Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: add back linux native top panel tauri

Faisal Amir5f6bed9e12f5
diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json
index e831f616e..ba053d80a 100644
--- a/src-tauri/tauri.linux.conf.json
+++ b/src-tauri/tauri.linux.conf.json
@@ -13,12 +13,12 @@
"zoomHotkeysEnabled": true,
"center": true,
"hiddenTitle": true,
- "transparent": true,
+ "transparent": false,
"trafficLightPosition": {
"x": 20,
"y": 32
},
- "decorations": false,
+ "decorations": true,
"titleBarStyle": "Overlay",
"windowEffects": {
"effects": ["fullScreenUI", "mica", "tabbed", "blur", "acrylic"],
diff --git a/web-app/src/routes/__root.tsx b/web-app/src/routes/__root.tsx
index a6395244e..386d8bcb0 100644
--- a/web-app/src/routes/__root.tsx
+++ b/web-app/src/routes/__root.tsx
@@ -55,8 +55,8 @@ const AppLayout = () => {
<AnalyticProvider />
<KeyboardShortcutsProvider />
{/* Fake absolute panel top to enable window drag */}
- {!IS_MACOS && <WindowControls />}
- <div className="fixed w-full h-12 z-20 top-0" data-tauri-drag-region />
+ {IS_WINDOWS && <WindowControls />}
+ {!IS_LINUX && <div className="fixed w-full h-12 z-20 top-0" data-tauri-drag-region />}
<DialogAppUpdater />
<BackendUpdater />
<LeftSidebar />