diff --git a/src/lib/vbranches/types.ts b/src/lib/vbranches/types.ts index 0141ea370..a05fea26e 100644 --- a/src/lib/vbranches/types.ts +++ b/src/lib/vbranches/types.ts @@ -21,6 +21,7 @@ export class File { modifiedAt!: Date; conflicted!: boolean; content!: string; + binary!: boolean; } export class Branch { diff --git a/src/routes/repo/[projectId]/FileCardNext.svelte b/src/routes/repo/[projectId]/FileCardNext.svelte index 3b539bbbb..0f03034b9 100644 --- a/src/routes/repo/[projectId]/FileCardNext.svelte +++ b/src/routes/repo/[projectId]/FileCardNext.svelte @@ -84,7 +84,7 @@ class="flex w-full flex-col justify-center gap-2 border-b border-t border-light-400 bg-light-50 py-1 text-light-900 dark:border-dark-400 dark:bg-dark-800 dark:text-light-300" >
{ @@ -116,10 +116,12 @@ tabindex="0" class="cursor-pointer px-3 py-2 text-light-600 dark:text-dark-200" > - {#if expanded} - - {:else} - + {#if !file.binary} + {#if expanded} + + {:else} + + {/if} {/if}