Some minimal stuff for the UI

just don’t have an expand thing
This commit is contained in:
Scott Chacon 2023-07-21 08:03:56 +02:00 committed by GitButler
parent 5fc68c8201
commit cd0ad44157
2 changed files with 8 additions and 5 deletions

View File

@ -21,6 +21,7 @@ export class File {
modifiedAt!: Date;
conflicted!: boolean;
content!: string;
binary!: boolean;
}
export class Branch {

View File

@ -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"
>
<div
class="flex pl-2 cursor-default"
class="flex cursor-default pl-2"
role="button"
tabindex="0"
on:dblclick={() => {
@ -116,10 +116,12 @@
tabindex="0"
class="cursor-pointer px-3 py-2 text-light-600 dark:text-dark-200"
>
{#if expanded}
<IconTriangleUp />
{:else}
<IconTriangleDown />
{#if !file.binary}
{#if expanded}
<IconTriangleUp />
{:else}
<IconTriangleDown />
{/if}
{/if}
</div>
</div>