mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -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,
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue