diff --git a/cptr/frontend/src/lib/components/DiffHunkList.svelte b/cptr/frontend/src/lib/components/DiffHunkList.svelte new file mode 100644 index 0000000..7cecfe8 --- /dev/null +++ b/cptr/frontend/src/lib/components/DiffHunkList.svelte @@ -0,0 +1,32 @@ + + +{#each hunks as hunk} + {#if showNumbers} +
+ + + + {hunk.header} +
+ {:else} +
+ {hunk.header} +
+ {/if} + +{/each} diff --git a/cptr/frontend/src/lib/components/DiffSettingsMenu.svelte b/cptr/frontend/src/lib/components/DiffSettingsMenu.svelte index c782686..a67a190 100644 --- a/cptr/frontend/src/lib/components/DiffSettingsMenu.svelte +++ b/cptr/frontend/src/lib/components/DiffSettingsMenu.svelte @@ -24,70 +24,62 @@ {preferAbove} {forceAbove} align="end" - className="w-56" + className="w-48" headerDivider={false} footerDivider={false} > -
-
- Whitespace -
- +
-
+
Diff Display
diff --git a/cptr/frontend/src/lib/components/FileEditor.svelte b/cptr/frontend/src/lib/components/FileEditor.svelte index ed595f5..eddc75d 100644 --- a/cptr/frontend/src/lib/components/FileEditor.svelte +++ b/cptr/frontend/src/lib/components/FileEditor.svelte @@ -1,12 +1,12 @@