<commit_before>// Modal wrapper options

.m-modalV2__wrapper {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;

  // MH: confirm if this is wrong for stackable modals
  m-stackableModal & {
    position: fixed;
    top: 0;
    left: 0;
  }

  .m-overlay-modal--backdrop {
    z-index: 0;
  }

  .m-overlay-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: static;
    padding: 0;
    margin: 0 auto;
    transform: none !important;
    overflow: initial;
    width: auto;
    height: auto;
    max-width: initial;
    max-height: initial;
    min-height: 100%;
    background: none !important;

    @media screen and (max-width: $max-mobile) {
      position: absolute;
      top: 0;
    }
    .m-overlay-modal--close {
      @include m-theme() {
        background-color: transparent;
      }
    }
  }
}

.m-modalV2__inner {
  position: relative;
  display: block;
  width: 100%;
  max-width: 585px;
  margin: 20px 0;
  border-radius: 4px;
  box-sizing: border-box;

  @include m-theme() {
    background-color: themed($m-bgColor--primary);
  }

  @media screen and (max-width: $max-mobile) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    margin: 0;
  }
}

.m-modalV2__header {
  padding: 40px 40px 0;
  .m-modalV2Header__title {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    @include m-theme() {
      color: themed($m-textColor--primary);
    }
  }
}

.m-modalV2__body {
  padding: 20px 40px;
  max-height: 420px;
  overflow-y: scroll;
  overflow-y: overlay;
}

.m-modalV2__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;

  @include m-theme() {
    border-top: 1px solid themed($m-borderColor--primary);
  }

  m-button {
    font-size: 16px;
    line-height: 28px;
  }
}
<commit_msg>(fix): Resolved bug with Modal size for mobile viewport<commit_after>// Modal wrapper options

.m-modalV2__wrapper {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;

  // MH: confirm if this is wrong for stackable modals
  m-stackableModal & {
    position: fixed;
    top: 0;
    left: 0;
  }

  .m-overlay-modal--backdrop {
    z-index: 0;
  }

  .m-overlay-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: static;
    padding: 0;
    margin: 0 auto;
    transform: none !important;
    overflow: initial;
    width: auto;
    height: auto;
    max-width: initial;
    max-height: initial;
    min-height: 100%;
    background: none !important;

    @media screen and (max-width: $max-mobile) {
      position: absolute;
      top: 0;
    }
    .m-overlay-modal--close {
      @include m-theme() {
        background-color: transparent;
      }
    }
  }
}

.m-modalV2__inner {
  position: relative;
  display: block;
  width: 100%;
  max-width: 585px;
  margin: 20px 0;
  border-radius: 4px;
  box-sizing: border-box;
  max-height: -webkit-fill-available;

  @include m-theme() {
    background-color: themed($m-bgColor--primary);
  }

  @media screen and (max-width: $max-mobile) {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0;
    margin: 0;
  }
}

.m-modalV2__header {
  padding: 40px 40px 0;
  .m-modalV2Header__title {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    @include m-theme() {
      color: themed($m-textColor--primary);
    }
  }
}

.m-modalV2__body {
  padding: 20px 40px;
  max-height: 420px;
  overflow-y: scroll;
  overflow-y: overlay;
}

.m-modalV2__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;

  @include m-theme() {
    border-top: 1px solid themed($m-borderColor--primary);
  }

  m-button {
    font-size: 16px;
    line-height: 28px;
  }
}

{'fraction_non_alphanumeric': 0.13756743501716528, 'fraction_numerical': 0.03334968121628249, 'mean_word_length': 2.5012875536480688, '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': '4733546', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1501, 'n_words': 352}