.tabs-header-only {
  .ant-tabs-content-holder {
    display: none !important;
  }

  .ant-tabs-tab {
    position: relative;

    &:hover {
      .tab-close-btn {
        opacity: 1;
      }
    }
  }

  .tab-close-btn {
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 4px;

    &:hover {
      color: #ff4d4f;
    }
  }

  .ant-tabs-tab-active {
    .tab-close-btn {
      opacity: 0.7;
    }
  }
}

// 右键菜单样式优化
.ant-dropdown-menu {
  .ant-dropdown-menu-item {
    &:hover {
      background-color: #f5f5f5;
    }

    &.ant-dropdown-menu-item-disabled {
      color: #bfbfbf;
      cursor: not-allowed;
    }
  }

  .ant-dropdown-menu-item-divider {
    margin: 4px 0;
  }
}
