diff --git a/app/src/lib/components/CommitLines.svelte b/app/src/lib/components/CommitLines.svelte index 5b2eed3e5..9aae91016 100644 --- a/app/src/lib/components/CommitLines.svelte +++ b/app/src/lib/components/CommitLines.svelte @@ -31,6 +31,8 @@ commit={localCommit?.status == 'remote' ? localCommit : undefined} line={localCommit?.status == 'remote' || remoteLine} root={localLine} + {remoteCommit} + {upstreamLine} {first} {base} /> diff --git a/app/src/lib/components/CommitList.svelte b/app/src/lib/components/CommitList.svelte index ee765d013..c7c312272 100644 --- a/app/src/lib/components/CommitList.svelte +++ b/app/src/lib/components/CommitList.svelte @@ -32,21 +32,21 @@ @@ -85,7 +85,12 @@ {/each} {/if} {#if $remoteCommits.length > 0} - + {#each $remoteCommits as commit, idx (commit.id)}
import Avatar from './Avatar.svelte'; - import type { Commit } from '$lib/vbranches/types'; + import type { Commit, RemoteCommit } from '$lib/vbranches/types'; export let commit: Commit | undefined; + export let remoteCommit: RemoteCommit | undefined; export let base: boolean; export let first: boolean; export let line: boolean; export let root: boolean; + export let upstreamLine: boolean; $: hasRoot = isRoot(commit); @@ -39,7 +41,12 @@
{:else} {#if line} -
+ {#if upstreamLine} +
+ {/if} +
+ {:else if upstreamLine} +
{/if} {#if hasRoot}
@@ -50,6 +57,12 @@
{/if} + {#if remoteCommit} + {@const author = remoteCommit.author} +
+ +
+ {/if} {/if}
@@ -70,7 +83,10 @@ top: calc(var(--size-40) + var(--size-2)); } &.short { - top: 1rem; + top: 3rem; + } + &.tip { + bottom: calc(100% - 2.625rem); } &.dashed { background: repeating-linear-gradient( @@ -81,6 +97,9 @@ var(--clr-commit-remote) 0.4375rem ); } + &.upstream { + background-color: var(--clr-commit-upstream); + } } .avatar {