mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
fix koboldai lite CSS overrides not working on windows
This commit is contained in:
parent
b5573c32f5
commit
141d4d9ea6
2 changed files with 6 additions and 7 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue