Browse Source

fix(patch): consistant hunk width within diff

previously they varied based on max character number within the hunk
master
DanConwayDev 2 years ago
parent
commit
49386225de
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 4
      src/lib/components/events/content/Patch.svelte

4
src/lib/components/events/content/Patch.svelte

@ -160,8 +160,8 @@ @@ -160,8 +160,8 @@
{/each}
</div>
<div class="flex-auto overflow-x-auto">
{#each file.chunks as chunk, index}
<div class="w-fit">
{#each file.chunks as chunk, index}
{#if index !== 0}
<div class="flex h-7 w-full bg-base-200"></div>
{/if}
@ -195,10 +195,10 @@ @@ -195,10 +195,10 @@
</div>
</div>
{/each}
</div>
{/each}
</div>
</div>
</div>
{/if}
</div>
<!-- vertical padding for full width so that content retains it space -->

Loading…
Cancel
Save