From 0f7f4c98af2851c219ff3493c2820d077a284925 Mon Sep 17 00:00:00 2001 From: Acumen-Desktop Date: Mon, 10 Feb 2025 11:23:02 -0700 Subject: [PATCH] Remove widow logic from 'main' --- ui-svelte/src-main/main.ts | 9 -- .../src-renderer/routes/welcome/+page.svelte | 97 +++++++++---------- 2 files changed, 45 insertions(+), 61 deletions(-) diff --git a/ui-svelte/src-main/main.ts b/ui-svelte/src-main/main.ts index 6cf07b345..ba88ff3b3 100644 --- a/ui-svelte/src-main/main.ts +++ b/ui-svelte/src-main/main.ts @@ -170,15 +170,6 @@ async function createChat( }, }); - const primaryDisplay = screen.getPrimaryDisplay(); - const { width } = primaryDisplay.workAreaSize; - windowCounter++; - const direction = windowCounter % 2 === 0 ? 1 : -1; - const initialOffset = 50; - const baseXPosition = Math.round(width / 2 - mainWindow.getSize()[0] / 2); - const xOffset = direction * initialOffset * Math.floor(windowCounter / 2); - mainWindow.setPosition(baseXPosition + xOffset, 100); - const queryParam = query ? `?initialQuery=${encodeURIComponent(query)}` : ""; diff --git a/ui-svelte/src-renderer/routes/welcome/+page.svelte b/ui-svelte/src-renderer/routes/welcome/+page.svelte index d108292ed..f590db4c0 100644 --- a/ui-svelte/src-renderer/routes/welcome/+page.svelte +++ b/ui-svelte/src-renderer/routes/welcome/+page.svelte @@ -9,33 +9,32 @@ }; -
-
- -
- -
-
- -
-

- Welcome to goose -

-

- Your intelligent AI assistant for seamless productivity and - creativity. -

-
-
-
+
+ +
+
+ +
+

+ Welcome to goose +

+

+ Your intelligent AI assistant for seamless productivity and + creativity. +

+
+
+
- + +
+ +
+

Choose a Provider @@ -50,32 +49,26 @@

- - -
-

- Not sure where to start?{" "} - - -

-
-
+ + + +