.DialogAvatar {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  &.online::before {
    content: '';
    position: absolute;
    background: #2bb452;
    width: 8px;
    height: 8px;
    top: -2px;
    right: -2px;
    border-radius: 50%;
    border: 3px solid #fff;
  }

  .imageHolder {
    background-size: cover;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    border-radius: 100%;
  }

  .letter {
    display: block;
    border-radius: 100%;
    margin-bottom: -2px;
    font-weight: 500;
    font-size: 18px;
    line-height: 10px;
    color: #fff;
  }

  &.small {
    width: 24px;
    height: 24px;

    .letter {
      font-size: 14px;
    }
  }

  &.bordered {
    border: 2px solid #fff;
  }
}
