From 1ae889b63328f55cce4e1b056e453f2615e87d1a Mon Sep 17 00:00:00 2001 From: Haorui Jiang <143785706+HiramJiang@users.noreply.github.com> Date: Fri, 16 Jan 2026 11:58:02 -0500 Subject: [PATCH 1/2] fix: disable animated background on web (non-Electron) version - Add isElectron environment detection - Only render animated background (gradient orbs, SVG shapes, particles) in Electron desktop app - Web/Studio version now shows static solid background for better performance Co-Authored-By: Claude Opus 4.5 --- src/components/layout/Layout.tsx | 110 ++++++++++++++++--------------- 1 file changed, 58 insertions(+), 52 deletions(-) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index e50368b..afbb1d9 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -35,6 +35,10 @@ export const PageResetContext = createContext<{ resetPage: (path: string) => voi let keyCounter = 0 const nextKey = () => ++keyCounter +// Check if running in Electron environment +const isElectron = typeof navigator !== 'undefined' && + navigator.userAgent.toLowerCase().includes('electron') + export function Layout() { const { t } = useTranslation() const [sidebarCollapsed, setSidebarCollapsed] = useState(false) @@ -288,58 +292,60 @@ export function Layout() { /> )} - {/* Abstract art background */} -
- {/* Gradient orbs */} -
-
-
- - {/* Abstract SVG shapes */} - - - - - - - - - {/* Flowing curves */} - - - - {/* Geometric shapes */} - - - - - - - {/* Floating particles */} -
-
-
-
-
-
+ {/* Abstract art background - Only show in Electron (desktop) */} + {isElectron && ( +
+ {/* Gradient orbs */} +
+
+
+ + {/* Abstract SVG shapes */} + + + + + + + + + {/* Flowing curves */} + + + + {/* Geometric shapes */} + + + + + + + {/* Floating particles */} +
+
+
+
+
+
+ )} setSidebarCollapsed(!sidebarCollapsed)} From 3d75d54f437e8a6f70626da0644c9efa40e4facc Mon Sep 17 00:00:00 2001 From: Haorui Jiang <143785706+HiramJiang@users.noreply.github.com> Date: Sat, 17 Jan 2026 13:08:56 -0500 Subject: [PATCH 2/2] fix: remove animated background entirely Remove dynamic background effects (gradient orbs, SVG shapes, floating particles) from both desktop and web versions for cleaner UI. Co-Authored-By: Claude Opus 4.5 --- src/components/layout/Layout.tsx | 58 -------------------------------- 1 file changed, 58 deletions(-) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index afbb1d9..1744603 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -35,10 +35,6 @@ export const PageResetContext = createContext<{ resetPage: (path: string) => voi let keyCounter = 0 const nextKey = () => ++keyCounter -// Check if running in Electron environment -const isElectron = typeof navigator !== 'undefined' && - navigator.userAgent.toLowerCase().includes('electron') - export function Layout() { const { t } = useTranslation() const [sidebarCollapsed, setSidebarCollapsed] = useState(false) @@ -292,60 +288,6 @@ export function Layout() { /> )} - {/* Abstract art background - Only show in Electron (desktop) */} - {isElectron && ( -
- {/* Gradient orbs */} -
-
-
- - {/* Abstract SVG shapes */} - - - - - - - - - {/* Flowing curves */} - - - - {/* Geometric shapes */} - - - - - - - {/* Floating particles */} -
-
-
-
-
-
- )} setSidebarCollapsed(!sidebarCollapsed)}