From 356e433f5b0882f015b5d94a922c71a54330a04e Mon Sep 17 00:00:00 2001 From: GitButler Date: Mon, 10 Jul 2023 17:07:47 +0200 Subject: [PATCH 1/3] gitbutler joint commit --- src/lib/components/Modal/Modal.svelte | 8 ++++---- src/lib/components/Overlay/Overlay.svelte | 2 +- src/lib/components/PopupMenu/PopupMenu.svelte | 6 +++++- src/routes/repo/[projectId]/FileCard.svelte | 4 ++-- .../repo/[projectId]/NewBranchDropZone.svelte | 17 ++++++++++------- src/routes/repo/[projectId]/Tray.svelte | 16 ++++++++-------- 6 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/lib/components/Modal/Modal.svelte b/src/lib/components/Modal/Modal.svelte index 534e14a2e..8bb4d9436 100644 --- a/src/lib/components/Modal/Modal.svelte +++ b/src/lib/components/Modal/Modal.svelte @@ -30,7 +30,7 @@ > {#if $$slots.title}
@@ -38,14 +38,14 @@
-
{/if} {#if title}
@@ -64,7 +64,7 @@
diff --git a/src/lib/components/Overlay/Overlay.svelte b/src/lib/components/Overlay/Overlay.svelte index a0c285cef..e5ae902e6 100644 --- a/src/lib/components/Overlay/Overlay.svelte +++ b/src/lib/components/Overlay/Overlay.svelte @@ -23,7 +23,7 @@ {#if showMenu} -
+
e.dataTransfer?.setData('text/hunk', id + ':' + hunk.id)} on:contextmenu|preventDefault={(e) => popupMenu.openByMouse(e, hunk)} - class="changed-hunk flex w-full flex-col rounded-lg border border-light-200 bg-white dark:border-dark-400 dark:bg-dark-900" + class="changed-hunk flex w-full flex-col overflow-hidden rounded border border-light-200 bg-white dark:border-dark-400 dark:bg-dark-900" > {#if $userSettings.aiSummariesEnabled}
@@ -102,7 +102,7 @@
-
+
+{hunkSize(hunk.diff)[0]}
{#if hunkSize(hunk.diff)[1] > 0} diff --git a/src/routes/repo/[projectId]/NewBranchDropZone.svelte b/src/routes/repo/[projectId]/NewBranchDropZone.svelte index e335944b5..5ac05bd53 100644 --- a/src/routes/repo/[projectId]/NewBranchDropZone.svelte +++ b/src/routes/repo/[projectId]/NewBranchDropZone.svelte @@ -22,7 +22,7 @@
{ @@ -34,17 +34,20 @@ }} >
-
+

Drag changes or click button to create new virtual branch

- +
- diff --git a/src/routes/repo/[projectId]/Tray.svelte b/src/routes/repo/[projectId]/Tray.svelte index 158197ba1..907e46e33 100644 --- a/src/routes/repo/[projectId]/Tray.svelte +++ b/src/routes/repo/[projectId]/Tray.svelte @@ -65,7 +65,7 @@ class="w-80 min-w-[216px] max-w-lg shrink-0 resize-x overflow-y-auto border-r border-light-400 bg-white text-light-800 dark:border-dark-600 dark:bg-dark-900 dark:text-dark-100" > -
Target branch
+
Base branch
@@ -97,11 +97,11 @@
Your branches
-
-
{/if} diff --git a/src/routes/repo/[projectId]/Tray.svelte b/src/routes/repo/[projectId]/Tray.svelte index 907e46e33..5bee79541 100644 --- a/src/routes/repo/[projectId]/Tray.svelte +++ b/src/routes/repo/[projectId]/Tray.svelte @@ -67,15 +67,15 @@
Base branch
-
{target.name}
-
-
{target.behind > 0 ? `behind ${target.behind}` : 'up-to-date'}
+
{target.name}
+
+
{target.behind > 0 ? `behind ${target.behind}` : 'up-to-date'}
{#if target.behind == 0} {:else}