Skip to content

Commit 099e53e

Browse files
committed
Modifies issue row when no issue is associated with the active branch
(#4332)
1 parent e397245 commit 099e53e

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/webviews/apps/plus/home/components/branch-card.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ export const branchCardStyles = css`
189189
}
190190
191191
.branch-item__missing {
192-
--button-foreground: inherit;
192+
color: var(--vscode-descriptionForeground);
193+
font-style: italic;
193194
}
194195
195196
.branch-item__is-narrow {
@@ -918,16 +919,23 @@ export abstract class GlBranchCardBase extends GlElement {
918919
if (!issues.length) {
919920
if (!this.expanded) return nothing;
920921

921-
return html`<gl-button
922-
class="branch-item__missing"
923-
appearance="secondary"
924-
full
925-
href=${this.createCommandLink<AssociateIssueWithBranchCommandArgs>('gitlens.associateIssueWithBranch', {
926-
branch: this.branch.reference,
927-
source: 'home',
928-
})}
929-
>Associate an Issue</gl-button
930-
>`;
922+
return html`<div class="branch-item__row" full>
923+
<span class="branch-item__missing" full>Current work item</span>
924+
<gl-tooltip hoist content="Associate an issue">
925+
<a
926+
class="branch-item__missing"
927+
appearance="secondary"
928+
href=${this.createCommandLink<AssociateIssueWithBranchCommandArgs>(
929+
'gitlens.associateIssueWithBranch',
930+
{
931+
branch: this.branch.reference,
932+
source: 'home',
933+
},
934+
)}
935+
><span class="branch-item__icon"> <issue-icon></issue-icon> </span
936+
></a>
937+
</gl-tooltip>
938+
</div>`;
931939
}
932940

933941
const indicator: GlCard['indicator'] = this.branch.opened ? 'base' : undefined;

0 commit comments

Comments
 (0)