Skip to content

Commit

Permalink
chore: update branch selection buttons with tooltips to clarify their…
Browse files Browse the repository at this point in the history
… functionality
  • Loading branch information
krlvi committed Jan 24, 2024
1 parent 1b3afe9 commit bc2674d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions gitbutler-ui/src/routes/[projectId]/components/BranchHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,26 @@
<div class="header__actions">
<div class="header__buttons">
{#if branch.selectedForChanges}
<Button icon="target" notClickable disabled={readonly}>Target branch</Button>
<Tooltip timeoutMilliseconds={1000} label="New changes will land here">
<Button class="w-32" icon="target" notClickable disabled={readonly}
>Default branch</Button
>
</Tooltip>
{:else}
<Button
icon="target"
kind="outlined"
color="neutral"
disabled={readonly}
on:click={async () => {
await branchController.setSelectedForChanges(branch.id);
}}
>
Make target
</Button>
<Tooltip timeoutMilliseconds={1000} label="When selected, new changes will land here">
<Button
class="w-32"
icon="target"
kind="outlined"
color="neutral"
disabled={readonly}
on:click={async () => {
await branchController.setSelectedForChanges(branch.id);
}}
>
Set as default
</Button>
</Tooltip>
{/if}
{#if !readonly}
<Button
Expand Down

0 comments on commit bc2674d

Please sign in to comment.