Browse Source

Changes commit details file stats styling 💄

main
Eric Amodio 2 years ago
parent
commit
41385a7abd
2 changed files with 5 additions and 7 deletions
  1. +1
    -1
      src/webviews/apps/shared/components/commit/commit-identity.ts
  2. +4
    -6
      src/webviews/apps/shared/components/commit/commit-stats.ts

+ 1
- 1
src/webviews/apps/shared/components/commit/commit-identity.ts View File

@ -7,7 +7,7 @@ export class CommitIdentity extends LitElement {
static override styles = css`
:host {
display: grid;
gap: 0.25rem 0.5rem;
gap: 0rem 1rem;
justify-content: start;
}
a {

+ 4
- 6
src/webviews/apps/shared/components/commit/commit-stats.ts View File

@ -9,15 +9,13 @@ export class CommitStats extends LitElement {
display: inline-flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
vertical-align: middle;
gap: 1rem;
}
.stat {
display: inline-flex;
flex-direction: row;
align-items: center;
min-width: 3.4em;
}
.stat code-icon {
@ -53,13 +51,13 @@ export class CommitStats extends LitElement {
override render() {
return html`
<span class="stat added" title="${this.added} added" aria-label="${this.added} added"
><codespan>-icon class="na">icon="diff-added"></code-icon><span class="label">${this.added}</span></span
><span class="label">+${this.added}</span></span
>
<span class="stat modified" title="${this.modified} modified" aria-label="${this.modified} modified"
><codespan>-icon class="na">icon="diff-modified"></code-icon><span class="label">${this.modified}</span></span
><span class="label">~${this.modified}</span></span
>
<span class="stat deleted" title="${this.removed} removed" aria-label="${this.removed} removed"
><codespan>-icon class="na">icon="diff-removed"></code-icon><span class="label">${this.removed}</span></span
><span class="label">-${this.removed}</span></span
>
`;
}

Loading…
Cancel
Save