diff --git a/packages/ui/src/routes/repo/[projectId]/BranchLane.svelte b/packages/ui/src/routes/repo/[projectId]/BranchLane.svelte index 86fd0dde0..797ef83f0 100644 --- a/packages/ui/src/routes/repo/[projectId]/BranchLane.svelte +++ b/packages/ui/src/routes/repo/[projectId]/BranchLane.svelte @@ -65,6 +65,7 @@ const user = userStore; const userSettings = getContext(SETTINGS_CONTEXT); + $: headCommit = branch.commits[0]; $: localCommits = branch.commits.filter((c) => !c.isIntegrated && !c.isRemote); $: remoteCommits = branch.commits.filter((c) => c.isRemote && !c.isIntegrated); $: integratedCommits = branch.commits.filter((c) => c.isIntegrated); @@ -548,14 +549,14 @@ - {#each localCommits as commit, i (commit.id)} + {#each localCommits as commit (commit.id)}
- {#if i === 0} + {#if commit.id === headCommit?.id}
-
-
-
+ {#if commit.id === headCommit?.id} +
+
+ +
+ {:else} +
+
+
+ {/if}
{/each}