Browse Source

fix(patch): filename overflow

now wraps onto new lines
master
DanConwayDev 2 years ago
parent
commit
83df29d5f9
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 30
      src/lib/components/events/content/Patch.svelte

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

@ -71,7 +71,7 @@
> >
<div class="flex w-full bg-base-200"> <div class="flex w-full bg-base-200">
<button <button
class="flex flex-grow p-3 text-sm" class="flex shrink flex-grow p-3 text-sm"
on:click={() => { on:click={() => {
if (expand_full_files[index]) { if (expand_full_files[index]) {
expand_full_files[index] = false expand_full_files[index] = false
@ -82,25 +82,17 @@
expand_files[index] = true expand_files[index] = true
} }
}} }}
><div class="flex-none"> ><div class="text-wrap shrink text-left">
<span> <span class="pr-3">{file.to || file.from}</span>
{file.to || file.from}
</span>
<span <span
class="text-middle flex-none pl-3 align-middle font-mono text-xs opacity-70" class="text-middle flex-none align-middle font-mono text-xs opacity-70"
> >{#if file.new}<span>created&nbsp;file</span
{#if file.new} >&nbsp;{/if}{#if file.deleted}<span>deleted&nbsp;file</span
<span>created file</span> >&nbsp;{/if}{#if !file.deleted}<span class="text-success"
{/if} >+{file.additions}</span
{#if file.deleted} >{/if}&nbsp;{#if !file.new}<span class="text-error"
<span>deleted file</span> >-{file.deletions}</span
{/if} >{/if}
{#if !file.deleted}
<span class="text-success">+{file.additions}</span>
{/if}
{#if !file.new}
<span class="text-error">-{file.deletions}</span>
{/if}
</span> </span>
</div> </div>
<div class="flex-grow"></div> <div class="flex-grow"></div>

Loading…
Cancel
Save