mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 18:12:48 +03:00
fix: DefaultTargetButton
size for the stacking feature
This commit is contained in:
parent
a2d2ebdf07
commit
210b58d8f8
@ -151,6 +151,7 @@
|
||||
<div class="header__actions">
|
||||
<div class="header__buttons">
|
||||
<DefaultTargetButton
|
||||
size="button"
|
||||
selectedForChanges={branch.selectedForChanges}
|
||||
onclick={async () => {
|
||||
isTargetBranchAnimated = true;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user