Skip to content

Commit 9fb2cd2

Browse files
committed
Fix stying
1 parent 4e67eca commit 9fb2cd2

2 files changed

Lines changed: 10 additions & 33 deletions

File tree

webviews/components/header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,10 @@ function Subtitle({ state, stateReason, isDraft, isIssue, author, base, head, co
276276
<AuthorLink for={author} /> {!isIssue ? (<>
277277
{getActionText(state)} into{' '}
278278
{canEdit && state === GithubItemStateEnum.Open ? (
279-
<button
280-
title="Change base branch"
281-
onClick={changeBaseBranch}
282-
className="branch-tag-button"
279+
<button
280+
title="Change base branch"
281+
onClick={changeBaseBranch}
282+
className="secondary"
283283
aria-label="Change base branch"
284284
>
285285
<code className="branch-tag">{base}</code>

webviews/editorWebview/index.css

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -541,35 +541,6 @@ body button .icon {
541541
border-radius: 4px;
542542
}
543543

544-
.branch-tag-button {
545-
background-color: var(--vscode-button-secondaryBackground);
546-
color: var(--vscode-button-secondaryForeground);
547-
border: 1px solid transparent;
548-
border-radius: 4px;
549-
cursor: pointer;
550-
padding: 0;
551-
margin-top: 3px;
552-
font-family: inherit;
553-
font-size: inherit;
554-
}
555-
556-
.branch-tag-button:hover:enabled {
557-
background-color: var(--vscode-button-secondaryHoverBackground);
558-
}
559-
560-
.branch-tag-button:active {
561-
background-color: var(--vscode-button-secondaryHoverBackground);
562-
}
563-
564-
.branch-tag-button .branch-tag {
565-
background: transparent;
566-
margin-top: 0;
567-
}
568-
569-
.merge-branches .icon-button {
570-
margin-top: 4px;
571-
}
572-
573544
.subtitle .created-at {
574545
margin-left: auto;
575546
white-space: nowrap;
@@ -598,6 +569,12 @@ small-button {
598569
flex: 1;
599570
}
600571

572+
button code.branch-tag {
573+
background-color: transparent;
574+
padding-right: 0px;
575+
padding-left: 0px;
576+
}
577+
601578
:not(.status-item)>.small-button {
602579
font-weight: 600;
603580
}

0 commit comments

Comments
 (0)