Expressage.scss 1.09 KB
.express-info {
  display: flex;
  justify-content: space-between;
  height: 88rpx;
  gap: 12rpx;
  .express-info-item {
    display: flex;
    gap: 8rpx;
    align-items: center;
    font-weight: 400;
    font-size: 28rpx;
    color: #333435;
    &:first-child {
      flex: 1;
      width: 100%;
      overflow: hidden;
      text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        &:first-child {
          flex-shrink: 0; // 不收缩,只占用内容所需空间
          max-width: 50%; // 最多占50%宽度
        }
        &:last-child {
          flex: 1; // 占据剩余所有空间
        }
      }

      // text {
      //   // flex: 1;
      //   flex-shrink: 0;
      //   white-space: nowrap;
      //   overflow: hidden;
      //   text-overflow: ellipsis;
      //   max-width: 50%;
      // }
    }

    &:nth-child(2) {
      width: auto;
      flex-shrink: 0;
    }

    .logo {
      width: 32rpx;
      height: 32rpx;
      border-radius: 50%;
      overflow: hidden;
      transform: translateY(1rpx);
      flex-shrink: 0;
    }
  }
}