Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: trafficlight icon mac responsive
Faisal Amird491fa3578d2
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 003e0dfdd..6e16e857a 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -26,14 +26,13 @@"transparent": true,"trafficLightPosition": {"x": 12,- "y": 22+ "y": 25},"decorations": true,"titleBarStyle": "Overlay","windowEffects": {"effects": ["fullScreenUI", "mica", "tabbed", "blur", "acrylic"],- "state": "active",- "radius": 8+ "state": "active"},"dragDropEnabled": false}diff --git a/web-app/src/containers/HeaderPage.tsx b/web-app/src/containers/HeaderPage.tsxindex 54ccd5c58..d388f78ce 100644--- a/web-app/src/containers/HeaderPage.tsx+++ b/web-app/src/containers/HeaderPage.tsx@@ -58,7 +58,7 @@ const HeaderPage = ({ children }: HeaderPageProps) => {// Mobile-first responsive paddingisMobile ? 'px-3' : 'px-4',// macOS-specific padding when panel is closed- IS_MACOS && !open && isSmallScreen ? 'pl-20' : '',+ (IS_MACOS && isSmallScreen) || (IS_MACOS && !open) ? 'pl-20' : '',children === undefined && 'border-none')}>diff --git a/web-app/src/containers/LeftPanel.tsx b/web-app/src/containers/LeftPanel.tsxindex 99450fcf8..679c79982 100644--- a/web-app/src/containers/LeftPanel.tsx+++ b/web-app/src/containers/LeftPanel.tsx@@ -43,6 +43,7 @@ import { useClickOutside } from '@/hooks/useClickOutside'import { DeleteAllThreadsDialog } from '@/containers/dialogs'import AddProjectDialog from '@/containers/dialogs/AddProjectDialog'import { DeleteProjectDialog } from '@/containers/dialogs/DeleteProjectDialog'+import { cx } from 'class-variance-authority'const mainMenus = [{@@ -271,7 +272,12 @@ const LeftPanel = () => {><div className="relative h-10"><button- className="absolute top-1/2 right-0 -translate-y-1/2 z-20"+ className={cx(+ 'absolute top-1/2 -translate-y-1/2 z-20 right-0',+ (IS_MACOS && isSmallScreen) || (IS_MACOS && !open)+ ? 'pl-20 right-auto'+ : ''+ )}onClick={() => setLeftPanel(!open)}><div className="size-6 cursor-pointer flex items-center justify-center rounded hover:bg-left-panel-fg/10 transition-all duration-200 ease-in-out data-[state=open]:bg-left-panel-fg/10">