Skip to content

Commit 3e7dc34

Browse files
committed
Add file comparison info popup and reorder new diff options
1 parent 66bae81 commit 3e7dc34

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

web/src/routes/OpenDiffDialog.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@
474474
<h3 class="mb-4 flex items-center gap-1 text-lg font-semibold">
475475
<span class="iconify size-6 shrink-0 octicon--file-24"></span>
476476
From Files
477+
<InfoPopup>
478+
Compares any two texts or images. For files, the file type (text or image, and language) is inferred from the file extension and content. The
479+
file type can be overridden for text to control syntax highlighting.
480+
</InfoPopup>
477481
</h3>
478482
<div class="mb-2 flex flex-col gap-1">
479483
{#each flipFiles as id, index (id)}
@@ -585,13 +589,13 @@
585589
</header>
586590

587591
<div class="grow overflow-y-auto">
588-
{@render githubSection()}
589-
<Separator.Root class="h-px w-full bg-neutral-2" />
590-
{@render patchSection()}
591-
<Separator.Root class="h-px w-full bg-neutral-2" />
592592
{@render filesSection()}
593593
<Separator.Root class="h-px w-full bg-neutral-2" />
594+
{@render githubSection()}
595+
<Separator.Root class="h-px w-full bg-neutral-2" />
594596
{@render directoriesSection()}
597+
<Separator.Root class="h-px w-full bg-neutral-2" />
598+
{@render patchSection()}
595599
</div>
596600
</Dialog.Content>
597601
</Dialog.Portal>

0 commit comments

Comments
 (0)