Update BranchLane.svelte

This commit is contained in:
idonahue 2023-07-10 15:50:09 +02:00
parent de03042211
commit 1c960fbd89

View File

@ -143,11 +143,11 @@
}} }}
> >
<div <div
class="mb-2 flex w-full shrink-0 items-center gap-x-2 rounded-lg bg-light-200 text-lg font-bold text-light-900 dark:bg-dark-1000 dark:font-normal dark:text-dark-100" class="mb-2 flex w-full shrink-0 items-center gap-x-2 rounded-lg bg-light-200 text-lg text-light-900 dark:bg-dark-1000 dark:font-normal dark:text-dark-100"
> >
<div <div
on:dblclick={() => (maximized = !maximized)} on:dblclick={() => (maximized = !maximized)}
class="flex-grow-0 cursor-pointer text-light-600 dark:text-dark-200" class="h-8 w-8 p-2 flex-grow-0 cursor-pointer text-light-600 dark:text-dark-200"
> >
<IconBranch /> <IconBranch />
</div> </div>
@ -157,12 +157,12 @@
bind:value={name} bind:value={name}
on:change={handleBranchNameChange} on:change={handleBranchNameChange}
title={name} title={name}
class="w-full truncate border-0 bg-light-200 text-light-900 dark:bg-dark-1000 dark:font-normal dark:text-dark-100" class="w-full font-bold truncate border-0 bg-light-200 text-light-900 dark:bg-dark-1000 dark:text-dark-100"
/> />
</div> </div>
<button <button
bind:this={meatballButton} bind:this={meatballButton}
class="flex-grow-0 p-2 text-light-600 dark:text-dark-200" class="h-8 w-8 flex-grow-0 p-2 text-light-600 transition-colors hover:bg-zinc-300 dark:text-dark-200 dark:hover:bg-zinc-800"
on:keydown={() => popupMenu.openByElement(meatballButton, branchId)} on:keydown={() => popupMenu.openByElement(meatballButton, branchId)}
on:click={() => popupMenu.openByElement(meatballButton, branchId)} on:click={() => popupMenu.openByElement(meatballButton, branchId)}
> >
@ -183,13 +183,13 @@
{/if} {/if}
</PopupMenuItem> </PopupMenuItem>
<PopupMenuItem on:click={() => branchController.createBranch({ order: order + 1 })}>
Create branch after
</PopupMenuItem>
<PopupMenuItem on:click={() => branchController.createBranch({ order })}> <PopupMenuItem on:click={() => branchController.createBranch({ order })}>
Create branch before Create branch before
</PopupMenuItem> </PopupMenuItem>
<PopupMenuItem on:click={() => branchController.createBranch({ order: order + 1 })}>
Create branch after
</PopupMenuItem>
</PopupMenu> </PopupMenu>
<div <div
@ -203,7 +203,7 @@
rows={messageRows} rows={messageRows}
/> />
</div> </div>
<div class="mb-4 text-right"> <div class="mb-2 text-right">
<Button <Button
height="small" height="small"
color="purple" color="purple"
@ -233,7 +233,12 @@
{/each} {/each}
{#if files.length == 0} {#if files.length == 0}
<!-- attention: these markers have custom css at the bottom of thise file --> <!-- attention: these markers have custom css at the bottom of thise file -->
<div class="no-changes p-2" data-dnd-ignore>No uncommitted work on this branch.</div> <div
class="no-changes rounded border border-zinc-200 p-2 text-center dark:border-zinc-700"
data-dnd-ignore
>
No changes made
</div>
{/if} {/if}
</div> </div>
</div> </div>