<commit_before>@class-prefix-popover: ~'adm-popover';

.@{class-prefix-popover} {
  --z-index: var(--adm-popover-z-index, 1030);

  --background: #ffffff;
  --arrow-size: 8px;
  --content-padding: 8px 12px;

  &&-dark {
    --background: rgba(0, 0, 0, 0.75);
    --adm-color-text: #ffffff;
    color: white;
    .adm-popover-inner {
      box-shadow: none;
    }
  }

  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-index);
  white-space: normal;
  text-align: left;
  cursor: auto;
  user-select: text;
  animation: none;

  &::after {
    position: absolute;
    background: fade(#ffffff, 1%);
    content: '';
  }
  &-hidden {
    display: none;
  }

  &-inner {
    background-color: var(--background);
    background-clip: padding-box;
    border-radius: 8px;
    box-shadow: 0 0 30px 0 rgba(51, 51, 51, 0.2);
    font-size: 15px;
    min-width: 32px;
    overflow-y: hidden;
    &-content {
      padding: var(--content-padding);
    }
  }

  &-arrow {
    position: absolute;
    display: block;
    height: var(--arrow-size);
    width: var(--arrow-size);
    overflow: visible;
    background: transparent;
  }

  &-arrow-icon {
    display: block;
    height: var(--arrow-size);
    width: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--arrow-icon-rotate));<commit_msg>enhance: (Popover) add max-width limit<commit_after>@class-prefix-popover: ~'adm-popover';

.@{class-prefix-popover} {
  --z-index: var(--adm-popover-z-index, 1030);

  --background: #ffffff;
  --arrow-size: 8px;
  --content-padding: 8px 12px;

  &&-dark {
    --background: rgba(0, 0, 0, 0.75);
    --adm-color-text: #ffffff;
    color: white;
    .adm-popover-inner {
      box-shadow: none;
    }
  }

  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-index);
  white-space: normal;
  text-align: left;
  cursor: auto;
  user-select: text;
  animation: none;

  &::after {
    position: absolute;
    background: fade(#ffffff, 1%);
    content: '';
  }
  &-hidden {
    display: none;
  }

  &-inner {
    background-color: var(--background);
    background-clip: padding-box;
    border-radius: 8px;
    box-shadow: 0 0 30px 0 rgba(51, 51, 51, 0.2);
    font-size: 15px;
    min-width: 32px;
    max-width: calc(100vw - 24px);
    overflow-y: hidden;
    &-content {
      padding: var(--content-padding);
    }
  }

  &-arrow {
    position: absolute;
    display: block;
    height: var(--arrow-size);
    width: var(--arrow-size);
    overflow: visible;
    background: transparent;
  }

  &-arrow-icon {
    display: block;
    height: var(--arrow-size);
    width: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--arrow-icon-rotate));
{'fraction_non_alphanumeric': 0.17906137184115523, 'fraction_numerical': 0.03429602888086643, 'mean_word_length': 2.4551122194513715, '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': '3850789', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1014, 'n_words': 224}