mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-21 00:21:35 +03:00
fix: update branch card class and button logic to correctly handle active and selected branches
This commit is contained in:
parent
e98bb4fc17
commit
0fe1f93e89
@ -129,7 +129,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="branch-card-wrapper">
|
<div class="branch-card-wrapper">
|
||||||
<div class="branch-card" data-tauri-drag-region class:target-branch={branch.selectedForChanges}>
|
<div
|
||||||
|
class="branch-card"
|
||||||
|
data-tauri-drag-region
|
||||||
|
class:target-branch={branch.active && branch.selectedForChanges}
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
bind:this={rsViewport}
|
bind:this={rsViewport}
|
||||||
style:width={`${laneWidth || $defaultBranchWidthRem}rem`}
|
style:width={`${laneWidth || $defaultBranchWidthRem}rem`}
|
||||||
|
@ -236,6 +236,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="header__actions">
|
<div class="header__actions">
|
||||||
<div class="header__buttons">
|
<div class="header__buttons">
|
||||||
|
{#if branch.active}
|
||||||
{#if branch.selectedForChanges}
|
{#if branch.selectedForChanges}
|
||||||
<Button
|
<Button
|
||||||
help="New changes will land here"
|
help="New changes will land here"
|
||||||
@ -257,6 +258,7 @@
|
|||||||
Set as default
|
Set as default
|
||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
<!-- We can't show the merge button until we've waited for checks
|
<!-- We can't show the merge button until we've waited for checks
|
||||||
|
|
||||||
We use a octokit.checks.listForRef to find checks running for a PR, but right after
|
We use a octokit.checks.listForRef to find checks running for a PR, but right after
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<div
|
<div
|
||||||
class="wrapper"
|
class="wrapper"
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
class:target-branch={branch.selectedForChanges}
|
class:target-branch={branch.active && branch.selectedForChanges}
|
||||||
class:selected
|
class:selected
|
||||||
>
|
>
|
||||||
<BranchCard
|
<BranchCard
|
||||||
|
Loading…
Reference in New Issue
Block a user