From 141d4d9ea6317d8e819c8d0e784fe92177f1815d Mon Sep 17 00:00:00 2001 From: Egor Date: Mon, 24 Nov 2025 16:22:06 -0800 Subject: [PATCH] fix koboldai lite CSS overrides not working on windows --- src/main/modules/hardware.ts | 4 ++-- src/main/modules/koboldcpp/launcher/patches.ts | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/modules/hardware.ts b/src/main/modules/hardware.ts index c9c491c..c5a48ec 100644 --- a/src/main/modules/hardware.ts +++ b/src/main/modules/hardware.ts @@ -359,7 +359,7 @@ function handleHipInfoLine( trimmedLine: string, currentDevice: Partial | null, devices: GPUDevice[] -): boolean { +) { if (trimmedLine.startsWith('device#')) { if (currentDevice?.name) { devices.push( @@ -423,7 +423,7 @@ function findDeviceType(lines: string[], startIndex: number) { function determineIfIntegrated( name: string, vulkanInfo: { allGPUs: GPUDevice[] } -): boolean { +) { try { const matchingGPU = vulkanInfo.allGPUs.find( (gpu) => gpu.name.includes(name) || name.includes(gpu.name) diff --git a/src/main/modules/koboldcpp/launcher/patches.ts b/src/main/modules/koboldcpp/launcher/patches.ts index 026f5ab..2e7a804 100644 --- a/src/main/modules/koboldcpp/launcher/patches.ts +++ b/src/main/modules/koboldcpp/launcher/patches.ts @@ -24,10 +24,6 @@ const KLITE_CSS_OVERRIDE = ` margin: 0 10px; } -#inputrow { - padding: 0 10px; -} - #navbarNavDropdown { padding: 0; } @@ -36,6 +32,9 @@ const KLITE_CSS_OVERRIDE = ` margin-left: 10px; } +#inputrow { + padding: 0 10px; +} #inputrow > :nth-child(1) { padding-right: 0 !important; } @@ -60,7 +59,7 @@ export const patchKliteEmbd = (unpackedDir: string) => tryExecute(async () => { const possiblePaths = [ join(unpackedDir, '_internal', 'embd_res', 'klite.embd'), - join(unpackedDir, 'klite.embd'), + join(unpackedDir, 'embd_res', 'klite.embd'), ]; let kliteEmbdPath: string | null = null;