fix: DefaultTargetButton size for the stacking feature

This commit is contained in:
Pavel Laptev 2024-10-04 10:56:48 +02:00
parent a2d2ebdf07
commit 210b58d8f8
3 changed files with 6 additions and 3 deletions

View File

@ -151,6 +151,7 @@
<div class="header__actions">
<div class="header__buttons">
<DefaultTargetButton
size="button"
selectedForChanges={branch.selectedForChanges}
onclick={async () => {
isTargetBranchAnimated = true;

View File

@ -4,9 +4,10 @@
interface Props {
selectedForChanges: boolean;
onclick: () => void;
size: 'button' | 'tag';
}
const { selectedForChanges, onclick }: Props = $props();
const { selectedForChanges, size = 'button', onclick }: Props = $props();
</script>
{#if selectedForChanges}
@ -15,7 +16,7 @@
kind="soft"
tooltip="New changes will land here"
icon="target"
size="tag"
{size}
clickable={false}
>
Default branch
@ -26,7 +27,7 @@
outline
tooltip="When selected, new changes land here"
icon="target"
size="tag"
{size}
{onclick}
>
Set as default

View File

@ -112,6 +112,7 @@
<BranchLabel name={branch.name} onChange={(name) => handleBranchNameChange(name)} />
<span class="button-group">
<DefaultTargetButton
size="tag"
selectedForChanges={branch.selectedForChanges}
onclick={async () => {
isTargetBranchAnimated = true;