Skip to content

Commit cb2f4f1

Browse files
committed
Modifies issue row when no issue is associated with the active branch
(#4332, #4349)
1 parent ed713d2 commit cb2f4f1

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

src/webviews/apps/plus/home/components/active-work.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ export class GlActiveBranchCard extends GlBranchCardBase {
232232
flex-direction: column;
233233
gap: 0.8rem;
234234
}
235+
236+
span.branch-item__missing {
237+
color: var(--vscode-descriptionForeground);
238+
font-style: italic;
239+
}
235240
`,
236241
];
237242

@@ -518,16 +523,21 @@ export class GlActiveBranchCard extends GlBranchCardBase {
518523
if (!issues.length) {
519524
if (!this.expanded) return nothing;
520525

521-
return html`<gl-button
522-
class="branch-item__missing"
523-
appearance="secondary"
524-
full
525-
href=${this.createCommandLink<AssociateIssueWithBranchCommandArgs>('gitlens.associateIssueWithBranch', {
526-
branch: this.branch.reference,
527-
source: 'home',
528-
})}
529-
>Associate an Issue</gl-button
530-
>`;
526+
return html`<div class="branch-item__row" full>
527+
<span class="branch-item__missing" full>Current work item</span>
528+
<gl-tooltip hoist content="Associate an issue">
529+
<a
530+
href=${this.createCommandLink<AssociateIssueWithBranchCommandArgs>(
531+
'gitlens.associateIssueWithBranch',
532+
{
533+
branch: this.branch.reference,
534+
source: 'home',
535+
},
536+
)}
537+
><span class="branch-item__icon"> <issue-icon></issue-icon> </span
538+
></a>
539+
</gl-tooltip>
540+
</div>`;
531541
}
532542
return super.renderIssuesItem();
533543
}

0 commit comments

Comments
 (0)