Skip to content

Commit 5c7a658

Browse files
authored
Merge pull request #8647 from gitbutlerapp/fix-branch-header-layout-overflow
fix(branch-header): don't hide the overflow menu
2 parents 58acbad + 85d42f0 commit 5c7a658

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

apps/desktop/src/components/v3/BranchHeader.svelte

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
<div class="branch-header__content">
7979
<div class="branch-header__title text-14 text-bold">
80-
<div class="flex gap-6">
80+
<div class="branch-header__title-content flex gap-6">
8181
<BranchHeaderIcon color={lineColor} {iconName} />
8282
<BranchLabel
8383
name={branchName}
@@ -89,7 +89,9 @@
8989
</div>
9090

9191
{#if menu}
92-
{@render menu({ rightClickTrigger })}
92+
<div class="branch-header__menu">
93+
{@render menu({ rightClickTrigger })}
94+
</div>
9395
{/if}
9496
</div>
9597

@@ -176,6 +178,19 @@
176178
justify-content: space-between;
177179
min-width: 0;
178180
flex-grow: 1;
181+
overflow: auto;
182+
}
183+
184+
.branch-header__title-content {
185+
align-items: center;
186+
flex-grow: 1;
187+
min-width: 0;
188+
}
189+
190+
.branch-header__menu {
191+
display: flex;
192+
align-items: center;
193+
justify-content: center;
179194
}
180195
181196
.branch-header__content {

0 commit comments

Comments
 (0)