<commit_before>.c-widget-chart {
  position: relative;
  width: 100%;
  padding: 20px;

  // These following styles are used in MY RW,
  // specifically in "My Widgets"
  .c-chart {
    height: 300px;

    .chart {
      height: 100%;
    }
  }

  &.-thumbnail {
    max-height: 180px;
  }
}<commit_msg>Fix the styles of the charts in the My RW section<commit_after>.c-widget-chart {
  position: relative;
  width: 100%;
  padding: 20px;

  // These following styles are used in MY RW,
  // specifically in "My Widgets"
  .c-chart {
    // The pie and bar chart will overflow without
    // this property because they auto determine the
    // space they need
    height: auto;
    // For the other charts, we need a minimum height
    // and to make the container "flex" so we force the
    // chart to use at least the min-height
    min-height: 300px;
    display: flex;
    flex-direction: column;
    // In case of a bar chart with scrolling, we need
    // to use an overflow
    overflow-x: auto;
    max-width: 100%;

    .chart {
      // For smaller charts than the 300px, we center them
      // both vertically and horizontally
      display: flex;
      flex-direction: column;
      justify-content: center;

      // This is needed for the scatter and 1d_* charts
      // in order to take the whole 300px vertically
      flex-basis: 100%;
      flex-grow: 1;

      .vega {
        text-align: center;
      }
    }
  }

  // These styles are used in the Explore page
  // (the list of datasets)
  &.-thumbnail {
    max-height: 180px;

    .c-chart {
      display: block;
      height: 300px;

      .chart {
        display: block;
        height: 100%;
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.10041346721795628, 'fraction_numerical': 0.026580035440047254, 'mean_word_length': 1.9929328621908127, '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': '4323437', 'n_tokens_mistral': 575, 'n_tokens_neox': 515, 'n_words': 197}