|
390 | 390 | <Dialog.Trigger class="h-fit rounded-md btn-primary px-2 py-0.5" onclick={() => (dragActive = false)}>Load another diff</Dialog.Trigger> |
391 | 391 | <Dialog.Portal> |
392 | 392 | <Dialog.Overlay class="fixed inset-0 z-50 bg-black/50 dark:bg-white/20" /> |
393 | | - <Dialog.Content class="fixed top-1/2 left-1/2 z-50 w-192 max-w-[95%] -translate-x-1/2 -translate-y-1/2 rounded-md bg-neutral shadow-md"> |
394 | | - <header class="relative flex flex-row items-center justify-between rounded-t-md bg-neutral-2 p-4"> |
| 393 | + <Dialog.Content |
| 394 | + class="fixed top-1/2 left-1/2 z-50 max-h-svh w-192 max-w-[95%] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-md bg-neutral shadow-md" |
| 395 | + > |
| 396 | + <header class="sticky top-0 z-10 flex flex-row items-center justify-between rounded-t-md bg-neutral-2 p-4"> |
395 | 397 | <Dialog.Title class="text-xl font-semibold">Load a diff</Dialog.Title> |
396 | 398 | <Dialog.Close title="Close dialog" class="flex size-6 items-center justify-center rounded-md btn-ghost text-primary"> |
397 | 399 | <span class="iconify octicon--x-16" aria-hidden="true"></span> |
|
478 | 480 |
|
479 | 481 | <section class="mb-2"> |
480 | 482 | <h4 class="mb-2 font-semibold">Compare Files</h4> |
481 | | - <div class="flex flex-row items-center gap-1"> |
| 483 | + <div class="flex flex-wrap items-center gap-1"> |
482 | 484 | <SingleFileSelect bind:file={fileA} placeholder="File A" /> |
483 | 485 | <span class="iconify size-4 shrink-0 octicon--arrow-right-16"></span> |
484 | 486 | <SingleFileSelect bind:file={fileB} placeholder="File B" /> |
|
495 | 497 | it with the above button should be preferred. |
496 | 498 | </InfoPopup> |
497 | 499 | </div> |
498 | | - <div class="flex items-center gap-1"> |
| 500 | + <div class="flex flex-wrap items-center gap-1"> |
499 | 501 | <DirectorySelect bind:directory={dirA} placeholder="Directory A" /> |
500 | 502 | <span class="iconify size-4 shrink-0 octicon--arrow-right-16"></span> |
501 | 503 | <DirectorySelect bind:directory={dirB} placeholder="Directory B" /> |
|
508 | 510 | <Popover.Trigger title="Edit filters" class="flex rounded-r-md btn-primary p-2 data-[state=open]:btn-primary-hover"> |
509 | 511 | <span class="iconify size-4 shrink-0 place-self-center octicon--filter-16" aria-hidden="true"></span> |
510 | 512 | </Popover.Trigger> |
511 | | - <Popover.Content side="top" class="overflow-hidden rounded-md border bg-neutral"> |
| 513 | + <Popover.Content side="top" class="z-10 overflow-hidden rounded-md border bg-neutral"> |
512 | 514 | {@render blacklistPopoverContent()} |
513 | 515 | </Popover.Content> |
514 | 516 | </Popover.Root> |
|
0 commit comments