Skip to content

Commit c971092

Browse files
authored
Improving rendering of target branch pill (#8362)
Fixes #8355
1 parent 259a6bf commit c971092

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

webviews/components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ function Subtitle({ state, stateReason, isDraft, isIssue, author, base, head, co
280280
<button
281281
title="Change base branch"
282282
onClick={changeBaseBranch}
283-
className="secondary"
283+
className="secondary change-base"
284284
aria-label="Change base branch"
285285
>
286-
<code className="branch-tag">{base}</code>
286+
<code className="branch-tag">{base} {editIcon}</code>
287287
</button>
288288
) : (
289289
<code className="branch-tag">{base}</code>

webviews/editorWebview/index.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,13 @@ small-button {
582582
flex: 1;
583583
}
584584

585-
button code.branch-tag {
585+
button.secondary.change-base {
586586
background-color: transparent;
587-
padding-right: 0px;
588-
padding-left: 0px;
587+
padding: unset;
588+
}
589+
590+
.change-base code {
591+
display: flex;
589592
}
590593

591594
:not(.status-item)>.small-button {

0 commit comments

Comments
 (0)