$tabs: recent, changelog;

@each $tab in $tabs {
  .#{$tab} {
    .history-tab {
      &:not(.#{$tab}) {
        max-height: 100vh;
        overflow: hidden;
      }
    }
    &.swiping .react-swipeable-view-container .history-tab {
      max-height: none;
      overflow: visible;
    }
  }
}

.clear-filter {
  .mdc-chip {
    cursor: auto;
    &__ripple {
      display: none;
    }
    &__icon {
      cursor: pointer;
      border-radius: 0;
    }
  }
}

.history {
  .changelog-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    .changelog {
      width: 768px;
      max-width: 100%;
      &.hidden {
        display: none;
      }
    }
  }
  .recent-grid {
    padding: 16px;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 16px;
    @media (max-width: 1799px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (max-width: 1299px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (max-width: 660px) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
}
