Skip to content

second screen style error #17

Description

@wenzhihao123
Image
<Marquee direction={'up'} className={style.marquee} pauseOnHover={true}>
        {[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((item, index) => {
          return (
            <div key={index} className={style.list_item}>
              <section className={style.item__index}>NO.{index + 1}</section>
              <section className={style.item__label}>预警提醒{index + 1}</section>
              <div className={style.progress}>
                <span className={style.progress__conent} style={{ left: getProgressValue(item) }} />
              </div>
            </div>
          )
        })}
</Marquee>
.list_item {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 12px 0 24px;
  box-sizing: border-box;
  font-size: 16px;
  cursor: pointer;
  &:nth-of-type(even) {
    background: linear-gradient(90deg, rgba(23,49,89, .5), rgba(10, 102, 194, 0));
  }
  .item__index {
    width: 30px;
    color: rgba(244, 168, 65, 1);
  }
  .item__label {
    width: 100px;
    height: 100%;
    line-height: 40px;
    overflow: hidden;
    color: rgba(255, 255, 255, 1);
  }
  .progress {
    position: relative;
    width: 156px;
    height: 5px;
    background: rgba(100, 110, 132, 1);
    overflow: hidden;
    border-radius: 2px;
    .progress__conent {
      position: absolute;
      left: -100%;
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, #ffa832, #f8c47d);
    }
  }
}
.marquee {
  --duration: 10s
}

how to set right style for second screen data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions