@use '../../../../styles/_globals.scss' as *;

:host {
  display: block;
}

/* Table styles */

.table-wrapper {
  padding: var(--s);
}

.issue-table {
  width: 100%;
  border-collapse: collapse;

  tr:first-of-type {
    td {
      font-weight: 500;
    }
  }

  td {
    vertical-align: top;

    &.full-width {
      width: 100%;
    }
  }

  .markdown {
    max-width: 600px;
    width: 100%;
  }

  .description-row td {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

.comment {
  display: flex;
  padding: 12px 0;
  border-radius: var(--card-border-radius);
  border-bottom: 1px dashed var(--extra-border-color);

  &:last-child {
    border-bottom: none;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .name-and-comment-content {
    flex: 1;
    min-width: 0;

    .author-name {
      font-weight: 500;
      margin-right: var(--s);
    }

    .when {
      color: var(--palette-text-secondary);
      font-size: 0.875rem;
    }

    .markdown {
      margin-top: var(--s);

      ::ng-deep p:last-child {
        margin-bottom: 0;
      }
    }
  }
}

.last-comment-headline {
  margin-top: var(--s3);
  margin-bottom: 12px;
  text-align: center;
  color: var(--palette-text-secondary);
}

.load-comments-and-all-data {
  margin: var(--s2) 0;
}

.write-a-comment {
  margin-top: var(--s2);
}

mat-chip-listbox {
  margin-top: 0;
  margin-bottom: 0;
  vertical-align: baseline;

  mat-chip-option {
    margin: var(--s-quarter) var(--s-half) var(--s-quarter) 0;
  }
}
