diff --git a/src/lib/components/events/content/Patch.svelte b/src/lib/components/events/content/Patch.svelte index c1ccd89..955dc4c 100644 --- a/src/lib/components/events/content/Patch.svelte +++ b/src/lib/components/events/content/Patch.svelte @@ -91,49 +91,52 @@ {#if expand_files[index]}
{#each file.chunks as chunk, index} - {#if index !== 0} -
-
- ... +
+ {#if index !== 0} +
+
+ ... +
-
- {/if} - {#each chunk.changes as change, i} -
-
- {isAddChange(change) && - i !== 0 && - isDeleteChange(chunk.changes[i - 1]) - ? '' - : extractChangeLine(change)} -
-
- - {@html hljs.highlight( - change.type == 'normal' - ? change.content - : change.content.substring(1), - { - language: (file.to || file.from)?.split('.').pop() || '', - } - ).value} + {/if} + {#each chunk.changes as change, i} +
+
+ {isAddChange(change) && + i !== 0 && + isDeleteChange(chunk.changes[i - 1]) + ? '' + : extractChangeLine(change)} +
+
+ + {@html hljs.highlight( + change.type == 'normal' + ? change.content + : change.content.substring(1), + { + language: + (file.to || file.from)?.split('.').pop() || '', + } + ).value} +
-
- {/each} + {/each} +
{/each}
{/if}