File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments