@import "../mixins";

/** A React component holding history's commit list */
#commit-list {
  .commit {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;

    border-bottom: var(--light-border);
    padding-left: 2px;

    &.facade {
      .avatar {
        background-color: lightGray;
        border-radius: 4px;
      }

      .info {
        width: 100%;

        .summary {
          background-color: rgb(220, 220, 220);
          width: 90%;
          height: 1em;
        }

        .byline {
          background-color: rgb(240, 240, 240);
          width: 75%;
          height: 1em;
        }
      }
    }

    .avatar {
      width: 32px;
      height: 32px;
      flex-shrink: 0;

      border-radius: var(--border-radius);
      align-self: center;
      margin-left: var(--spacing);
    }

    .info {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin: auto 0;
      margin-left: var(--spacing);

      .summary {
        @include ellipsis
      }
    }
  }
}

@import "../mixins";

/** A React component holding history's commit list */
#commit-list {
  .commit {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;

    border-bottom: var(--light-border);
    padding-left: 2px;

    &.facade {
      .avatar {
        background-color: lightGray;
        border-radius: 4px;
      }

      .info {
        width: 100%;

        .summary {
          background-color: rgb(220, 220, 220);
          width: 90%;
          height: 1em;
        }

        .byline {
          background-color: rgb(240, 240, 240);
          width: 75%;
          height: 1em;
        }
      }
    }

    .avatar {
      width: 32px;
      height: 32px;
      flex-shrink: 0;

      border-radius: var(--border-radius);
      align-self: center;
      margin-left: var(--spacing);
    }

    .info {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin: auto 0;
      margin-left: var(--spacing);

      .summary, .byline { @include ellipsis }
    }
  }
}

Truncate byline in commit list when space is scarce
Truncate byline in commit list when space is scarce
