fix koboldai lite CSS overrides not working on windows

This commit is contained in:
Egor 2025-11-24 16:22:06 -08:00
parent b5573c32f5
commit 141d4d9ea6
2 changed files with 6 additions and 7 deletions

View file

@ -359,7 +359,7 @@ function handleHipInfoLine(
trimmedLine: string, trimmedLine: string,
currentDevice: Partial<GPUDevice> | null, currentDevice: Partial<GPUDevice> | null,
devices: GPUDevice[] devices: GPUDevice[]
): boolean { ) {
if (trimmedLine.startsWith('device#')) { if (trimmedLine.startsWith('device#')) {
if (currentDevice?.name) { if (currentDevice?.name) {
devices.push( devices.push(
@ -423,7 +423,7 @@ function findDeviceType(lines: string[], startIndex: number) {
function determineIfIntegrated( function determineIfIntegrated(
name: string, name: string,
vulkanInfo: { allGPUs: GPUDevice[] } vulkanInfo: { allGPUs: GPUDevice[] }
): boolean { ) {
try { try {
const matchingGPU = vulkanInfo.allGPUs.find( const matchingGPU = vulkanInfo.allGPUs.find(
(gpu) => gpu.name.includes(name) || name.includes(gpu.name) (gpu) => gpu.name.includes(name) || name.includes(gpu.name)

View file

@ -24,10 +24,6 @@ const KLITE_CSS_OVERRIDE = `
margin: 0 10px; margin: 0 10px;
} }
#inputrow {
padding: 0 10px;
}
#navbarNavDropdown { #navbarNavDropdown {
padding: 0; padding: 0;
} }
@ -36,6 +32,9 @@ const KLITE_CSS_OVERRIDE = `
margin-left: 10px; margin-left: 10px;
} }
#inputrow {
padding: 0 10px;
}
#inputrow > :nth-child(1) { #inputrow > :nth-child(1) {
padding-right: 0 !important; padding-right: 0 !important;
} }
@ -60,7 +59,7 @@ export const patchKliteEmbd = (unpackedDir: string) =>
tryExecute(async () => { tryExecute(async () => {
const possiblePaths = [ const possiblePaths = [
join(unpackedDir, '_internal', 'embd_res', 'klite.embd'), join(unpackedDir, '_internal', 'embd_res', 'klite.embd'),
join(unpackedDir, 'klite.embd'), join(unpackedDir, 'embd_res', 'klite.embd'),
]; ];
let kliteEmbdPath: string | null = null; let kliteEmbdPath: string | null = null;