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,
currentDevice: Partial<GPUDevice> | 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)

View file

@ -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;