Skip to content

Commit

Permalink
Only show either the divergence warning or upstream count
Browse files Browse the repository at this point in the history
  • Loading branch information
estib-vega committed Sep 13, 2024
1 parent 7d7e761 commit 901e225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/desktop/src/lib/navigation/TargetCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
<Tooltip text="The branch your Workspace branches are based on and merge into.">
<span class="text-14 text-semibold trunk-label">Target</span>
</Tooltip>
{#if ($base?.behind || 0) > 0}
{#if ($base?.behind || 0) > 0 && !baseBranchDiverged}
<Tooltip text="Unmerged upstream commits">
<Badge label={$base?.behind || 0} />
</Tooltip>
{/if}
<SyncButton />
{#if baseBranchDiverged}
<Tooltip text="Your branch has diverged from the target branch">
<div>
<Icon name="warning" color="warning" />
</div>
</Tooltip>
{/if}
<SyncButton />
</div>
<div class="base-branch-label">
{#if $base?.remoteUrl.includes('github.com')}
Expand Down

0 comments on commit 901e225

Please # to comment.