<commit_before>@import '~styles/variables.scss';
@import '~styles/mixins.scss';
@import '~styles/colors.scss';

.message {
  @extend .clearfix;
  position: relative;
  min-height: 40px;
  margin-top: 20px;
  padding-top: 2px;
  padding-bottom: 2px;

  &_repeated {
    margin-top: 0;
  }

  &_last &__cloud:before {
    display: block;
  }

  &__cloud {
    position: relative;
    float: right;
    min-width: 50px;
    max-width: $message_cloud_width;
    padding: 9px 15px;
    border-radius: 5px;
    color: $c-message-cloud_text;
    text-align: left;
    background: $c-message-cloud-default_bg;

    @media (max-width: $message_cloud_width) {
      max-width: calc(92vw - #{$messages_avatar_left_padding});
    }

    &:before {
      display: none;
      background: url('./default-horn.svg');
      position: absolute;
      bottom: -10px;
      right: 10px;
      height: 10px;
      width: 18px;
      content: ' ';
    }

    &:hover .message__date {
      opacity: 1;
    }

    &_other {
      float: left;
      background: $c-message-cloud-other_bg;

      &:before {
        display: block;
        top: 17px;
        left: -12px;
        width: 12px;
        height: 11px;
        background: url('./other-horn.svg');
        transform: translateY(-50%);
      }
    }
  }

  &__text {
    max-width: $message_cloud_width - 40px;
    display: inline-block;
    font-size: 16px;
    line-height: 18px;
    white-space: pre-line;
    vertical-align: middle;
    word-wrap: break-word;

    @media (max-width: $message_cloud_width) {
      max-width: calc(92vw - #{$messages_avatar_left_padding} - 40px);
    }
  }

  &__avatar {
    position: absolute;
    top: -10px;
    left: -65px;
    // transform: translateY(-50%);
    border-radius: $main-border-radius;
    border: 1px solid $c-message-avatar_border;
  }

  &__username {
    position: absolute;
    top: -15px;
    left: 10px;<commit_msg>fix message width on 400-500px screen width<commit_after>@import '~styles/variables.scss';
@import '~styles/mixins.scss';
@import '~styles/colors.scss';

.message {
  @extend .clearfix;
  position: relative;
  min-height: 40px;
  margin-top: 20px;
  padding-top: 2px;
  padding-bottom: 2px;

  &_repeated {
    margin-top: 0;
  }

  &_last &__cloud:before {
    display: block;
  }

  &__cloud {
    position: relative;
    float: right;
    min-width: 50px;
    max-width: $message_cloud_width;
    padding: 9px 15px;
    border-radius: 5px;
    color: $c-message-cloud_text;
    text-align: left;
    background: $c-message-cloud-default_bg;

    @media (max-width: $message_cloud_width + $messages_avatar_left_padding) {
      max-width: calc(92vw - #{$messages_avatar_left_padding});
    }

    &:before {
      display: none;
      background: url('./default-horn.svg');
      position: absolute;
      bottom: -10px;
      right: 10px;
      height: 10px;
      width: 18px;
      content: ' ';
    }

    &:hover .message__date {
      opacity: 1;
    }

    &_other {
      float: left;
      background: $c-message-cloud-other_bg;

      &:before {
        display: block;
        top: 17px;
        left: -12px;
        width: 12px;
        height: 11px;
        background: url('./other-horn.svg');
        transform: translateY(-50%);
      }
    }
  }

  &__text {
    max-width: $message_cloud_width - 40px;
    display: inline-block;
    font-size: 16px;
    line-height: 18px;
    white-space: pre-line;
    vertical-align: middle;
    word-wrap: break-word;

    @media (max-width: $message_cloud_width + $messages_avatar_left_padding + 10px) {
      max-width: calc(92vw - #{$messages_avatar_left_padding} - 40px);
    }
  }

  &__avatar {
    position: absolute;
    top: -10px;
    left: -65px;
    // transform: translateY(-50%);
    border-radius: $main-border-radius;
    border: 1px solid $c-message-avatar_border;
  }

  &__username {
    position: absolute;
    top: -15px;
    left: 10px;
{'fraction_non_alphanumeric': 0.14049376431662, 'fraction_numerical': 0.03003308729956732, 'mean_word_length': 2.3879310344827585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '800348', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1401, 'n_words': 282}