<commit_before>@import '../mixins';

.repository-list {
  height: 100%;
  display: flex;
  flex-direction: row;

  /**
   * Inherit the min-width from the ToolbarDropdown so that the repositories
   * list will always be the width of the button. Otherwise, if the Add
   * Repository foldout was open, it'd be taken into account as part of the
   * width and the list wouldn't be the same width as the button.
   */
  min-width: inherit;

  /**
   * Container for repository list items in the sidebar
   *
   * Contains two elements, one 16x16 <svg class='octicon'> holding an octicon
   * representing the repository type (local, private, public, fork)
   * and one <div class='name'> holding the repository name.
   */
  .repository-list-item {
    padding: 0 var(--spacing);

    // Layout the icon and repository name horizontally
    display: flex;
    flex-direction: row;
    // This makes it so that both the icon and the repo name
    // is vertically centered.
    align-items: center;

    // Necessary to limit the width of the repository
    // name and truncate accordingly
    width: 100%;

    .octicon {
      // Some room between the icon and repository name
      margin-right: var(--spacing-half);

      // Always let the octicon dictate the amount of space it needs
      flex-shrink: 0;

      // Force the octicon width
      width: 16px;
    }

    .name {
      // Long repository names truncate and ellipse
      @include ellipsis;

      .prefix {
        color: var(--text-secondary-color);
      }

      /* Used to highlight substring matches in filtered lists */
      mark {
        font-weight: bold;
        /* Reset browser defaults */
        background-color: inherit;
        color: currentColor;
      }
    }

    .change-indicator {
      color: var(--tab-bar-active-color);
      margin-right: 0;
      width: auto;
    }

    .change-indicator-wrapper {
      display: flex;
      min-width: 12px;
    }

    .ahead-behind {
      height: 16px;
      background: var(--list-item-badge-background-color);
      color: var(--list-item-badge-color);
      align-items: center;
      margin-left: auto;

      // Perfectly round semi circle ends with real tight
      // padding on either side. Now in two flavors!
      @include darwin {
        height: 12px;
        line-height: 12px;
      }

      @include win32 {
        height: 13px;
        line-height: 13px;
      }

      .octicon {
        margin: 0;
        height: 20px;
        width: 12px;
      }
    }
  }

  .new-repository-button {
    .octicon {
      margin-left: 5px;
      width: 9px;
      height: 13px;
    }
  }

  .no-items {
    text-align: center;
    padding: var(--spacing);
    word-wrap: break-word;

    .blankslate-image {
      margin: 0 auto;
      max-width: 300px;
    }

    .title {
      font-weight: var(--font-weight-semibold);
    }

    .protip {
      padding-top: var(--spacing-double);
      padding-left: var(--spacing-double);
      padding-right: var(--spacing-double);

      text-align: center;
      font-size: var(--font-size-sm);

      .kbd-shortcut {
        display: inline-block;
      }

      kbd {
        border-radius: var(--border-radius);
        border: var(--base-border);
        border-color: $gray-300;

        display: inline-block;

        padding: 1px 2px;
        line-height: 1;
        min-height: 16px;

        font-family: var(--font-family);
        text-align: center;
      }
    }
  }
}

.list-focus-container {
  /** Ahead/behind badge colors when list item is selected but not focused */
  .list-item.selected {
    .repository-list-item {
      .ahead-behind {
        background: var(--list-item-selected-badge-background-color);
        color: var(--list-item-selected-badge-color);
      }
    }
  }

  &.focus-within {
    /** Ahead/behind badge colors when list item is selected and focused */
    .list-item.selected {
      .repository-list-item {
        .ahead-behind {
          background: var(--list-item-selected-active-badge-background-color);
          color: var(--list-item-selected-active-badge-color);
        }
      }
    }

    .change-indicator {
      color: var(--text-color);
    }
  }
}
<commit_msg>use a sane min-width for the blank slate image inside the repository list<commit_after>@import '../mixins';

.repository-list {
  height: 100%;
  display: flex;
  flex-direction: row;

  /**
   * Inherit the min-width from the ToolbarDropdown so that the repositories
   * list will always be the width of the button. Otherwise, if the Add
   * Repository foldout was open, it'd be taken into account as part of the
   * width and the list wouldn't be the same width as the button.
   */
  min-width: inherit;

  /**
   * Container for repository list items in the sidebar
   *
   * Contains two elements, one 16x16 <svg class='octicon'> holding an octicon
   * representing the repository type (local, private, public, fork)
   * and one <div class='name'> holding the repository name.
   */
  .repository-list-item {
    padding: 0 var(--spacing);

    // Layout the icon and repository name horizontally
    display: flex;
    flex-direction: row;
    // This makes it so that both the icon and the repo name
    // is vertically centered.
    align-items: center;

    // Necessary to limit the width of the repository
    // name and truncate accordingly
    width: 100%;

    .octicon {
      // Some room between the icon and repository name
      margin-right: var(--spacing-half);

      // Always let the octicon dictate the amount of space it needs
      flex-shrink: 0;

      // Force the octicon width
      width: 16px;
    }

    .name {
      // Long repository names truncate and ellipse
      @include ellipsis;

      .prefix {
        color: var(--text-secondary-color);
      }

      /* Used to highlight substring matches in filtered lists */
      mark {
        font-weight: bold;
        /* Reset browser defaults */
        background-color: inherit;
        color: currentColor;
      }
    }

    .change-indicator {
      color: var(--tab-bar-active-color);
      margin-right: 0;
      width: auto;
    }

    .change-indicator-wrapper {
      display: flex;
      min-width: 12px;
    }

    .ahead-behind {
      height: 16px;
      background: var(--list-item-badge-background-color);
      color: var(--list-item-badge-color);
      align-items: center;
      margin-left: auto;

      // Perfectly round semi circle ends with real tight
      // padding on either side. Now in two flavors!
      @include darwin {
        height: 12px;
        line-height: 12px;
      }

      @include win32 {
        height: 13px;
        line-height: 13px;
      }

      .octicon {
        margin: 0;
        height: 20px;
        width: 12px;
      }
    }
  }

  .new-repository-button {
    .octicon {
      margin-left: 5px;
      width: 9px;
      height: 13px;
    }
  }

  .no-items {
    text-align: center;
    padding: var(--spacing);
    word-wrap: break-word;

    .blankslate-image {
      margin: 0 auto;
      max-width: 300px;
      min-width: auto;
    }

    .title {
      font-weight: var(--font-weight-semibold);
    }

    .protip {
      padding-top: var(--spacing-double);
      padding-left: var(--spacing-double);
      padding-right: var(--spacing-double);

      text-align: center;
      font-size: var(--font-size-sm);

      .kbd-shortcut {
        display: inline-block;
      }

      kbd {
        border-radius: var(--border-radius);
        border: var(--base-border);
        border-color: $gray-300;

        display: inline-block;

        padding: 1px 2px;
        line-height: 1;
        min-height: 16px;

        font-family: var(--font-family);
        text-align: center;
      }
    }
  }
}

.list-focus-container {
  /** Ahead/behind badge colors when list item is selected but not focused */
  .list-item.selected {
    .repository-list-item {
      .ahead-behind {
        background: var(--list-item-selected-badge-background-color);
        color: var(--list-item-selected-badge-color);
      }
    }
  }

  &.focus-within {
    /** Ahead/behind badge colors when list item is selected and focused */
    .list-item.selected {
      .repository-list-item {
        .ahead-behind {
          background: var(--list-item-selected-active-badge-background-color);
          color: var(--list-item-selected-active-badge-color);
        }
      }
    }

    .change-indicator {
      color: var(--text-color);
    }
  }
}

{'fraction_non_alphanumeric': 0.11739795318197858, 'fraction_numerical': 0.011763321962122103, 'mean_word_length': 1.922653832932279, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '910979', 'n_tokens_mistral': 2779, 'n_tokens_neox': 2566, 'n_words': 724}