feat(desktop): unified diff toggle

This commit is contained in:
Adam 2025-12-31 09:23:24 -06:00
commit 2ec6a21cc0
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
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> = []