@import '../../mixins/mixins.less';
@import '../../mixins/config.less';

@tht: ~'@{ns}-ap-table-table-header__title';

.b(ap-column-setting, {
  &-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    .@{tht} {
      // 重置默认两行ellipsis样式
      display: inline-block;
      -webkit-line-clamp: unset;
      -webkit-box-orient: unset;
      overflow: unset;
      text-overflow: unset;
      word-break: unset;
      // 设置一行ellipsis的显示效果
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
  &-left {
    flex: 1;
    flex-shrink: 1;
    min-width: 0;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    &__header {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      padding: 12px;
    }
    &__content {
      flex: 1;
      padding-inline: 12px;
      padding-block: 16px;
      overflow-y: auto;
      // 覆盖全局样式
      .ant-checkbox-wrapper {
        max-width: 100%;
        display: inline-flex;
        align-items: center;
        > span:last-child {
          flex: 1;
          min-width: 0;
        }
      }
    }
  }
  &-right {
    width: 240px;
  }
});
