Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(comp:upload): upload list card status text isn't centered #1461

Merged
merged 2 commits into from Feb 20, 2023

Conversation

sallerli1
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

  1. 上传列表卡片的文字不居中
  2. 上传列表卡片的进度条margin关键字错误
  3. 拖拽上传的demo不符合规范

What is the new behavior?

修复以上问题

Other information

@idux-bot
Copy link

idux-bot bot commented Feb 20, 2023

This preview will be available after the AzureCI is passed.

p {
font-size: 14px;
margin: 8px 0 0 0;
}
}
</style>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the code review

The code looks generally fine and there are no major bugs. The only suggestion I could make is to ensure that the font size for the

element is consistent with other elements in the style sheet. You should also consider adding a few more attributes such as line height and font family to ensure a better visual presentation.

min-width: @upload-list-image-card-status-min-width;

.@{idux-prefix}-progress {
display: flex;
margin-top: @upload-list-image-card-status-progress-margin;
margin: @upload-list-image-card-status-progress-margin;
}
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with a brief code review:

  1. The new code adds a 'text-align: center;' and 'padding: @spacing-xs;' to the '.@{upload-prefix}-status' class. This is good, as it makes the text in the status box more readable, and adds some padding around the edges.

  2. The new code also changes the 'margin-top' of the '.@{idux-prefix}-progress' class from '@upload-list-image-card-status-progress-margin' to '@upload-list-image-card-status-progress-margin'. This is good, as it will make the margins more consistent across the different elements in the card.

  3. There are no obvious bugs or issues with the code, so no further changes are necessary.

@danranVm danranVm merged commit afeb80e into IDuxFE:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants