Skip to content

Commit 402375c

Browse files
committed
Bolds commit SHA on rebase status banner
1 parent 3542fa7 commit 402375c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/webviews/apps/plus/shared/components/merge-rebase-status.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export class GlMergeConflictWarning extends LitElement {
6464
font-family: var(--vscode-editor-font-family);
6565
}
6666
67+
gl-commit-sha::part(label) {
68+
font-weight: bold;
69+
}
70+
6771
.ref-link {
6872
color: inherit;
6973
cursor: pointer;

src/webviews/apps/shared/components/commit-sha.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const styles = css`
2020
outline-offset: 2px;
2121
}
2222
23+
.label--uncommitted {
24+
cursor: default;
25+
}
26+
2327
.icon {
2428
margin-right: 0.3rem;
2529
align-self: center;
@@ -46,10 +50,11 @@ export class GlCommitSha extends LitElement {
4650
if (this.sha == null) return nothing;
4751

4852
if (!this.sha || isUncommitted(this.sha)) {
49-
return html`<span style="cursor:default;">${this.label}</span>`;
53+
return html`<span part="label" class="label--uncommitted">${this.label}</span>`;
5054
}
5155

52-
return html`<code-icon class="icon" icon="git-commit" size="${this.size}"></code-icon>${this.label}`;
56+
return html`<code-icon part="icon" class="icon" icon="git-commit" size="${this.size}"></code-icon
57+
><span part="label">${this.label}</span>`;
5358
}
5459
}
5560

@@ -67,7 +72,7 @@ export class GlCommitShaCopy extends LitElement {
6772
if (this.sha == null) return nothing;
6873

6974
return html`<gl-copy-container .content=${this.sha} placement="top">
70-
<gl-commit-sha .sha=${this.sha} .size=${this.size}></gl-commit-sha>
75+
<gl-commit-sha exportparts="icon, label" .sha=${this.sha} .size=${this.size}></gl-commit-sha>
7176
</gl-copy-container>`;
7277
}
7378
}

0 commit comments

Comments
 (0)