feat(desktop): unified diff toggle

This commit is contained in:
Adam
2025-12-31 09:23:24 -06:00
parent ebf5ad25c5
commit 2ec6a21cc0
9 changed files with 91 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ export function Diff<T>(props: SSRDiffProps<T>) {
let container!: HTMLDivElement
let fileDiffRef!: HTMLElement
const [local, others] = splitProps(props, ["before", "after", "class", "classList", "annotations"])
const workerPool = useWorkerPool()
const workerPool = useWorkerPool(props.diffStyle)
let fileDiffInstance: FileDiff<T> | undefined
const cleanupFunctions: Array<() => void> = []