-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[GSoC2024] Resolved Issue #7620 (Changed the alignment of the empty component in job page) #7621
Conversation
On line number 23 of styles.scss you have
and by changing it to
shall solve the alignment thus you wont need to write so much code. |
@syedbarimanjan let me try it out |
@syedbarimanjan yeah i tried that, but it was not aligned as other empty components rendered in pages like projects |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more comments:
- Please, add a changelog entry
- In each file that you update, update license header with actual change year (-2024)
- Look at the begging at the
cvat-ui/src/components/jobs-page/styles.scss
file. Class selector.cvat-jobs-page
has a couplediv:nth-child
usages. It was added for faster development of the page but considered as bad practice. Could you fix that and add actual classnames instead of nth selectors? I belive first one is for top-bar and second for empty list. Also you can move your changes with ant-empty alignment here.
@klakhov how do we create a changelog? do we have any script or should we do it manually in changelog folder? |
Developers: this project uses scriv (https://scriv.readthedocs.io/en/stable/index.html)
Fragments will be merged into this file whenever a release is made. |
thanks |
@klakhov can you review it now? |
This reverts commit b4cf635.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thekavikumar
It looks we lost paddings for non-empty job list after the style changes. Could you fix that?
Should be as on other pages:
@klakhov sure i will fix it |
@klakhov check it now |
@klakhov I've changed it to $grid-unit-size |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7621 +/- ##
===========================================
- Coverage 83.47% 83.44% -0.03%
===========================================
Files 373 373
Lines 39739 39736 -3
Branches 3741 3741
===========================================
- Hits 33171 33157 -14
- Misses 6568 6579 +11
|
ref issue: #7620
I've created a class called
cvat-empty-jobs-list
and added it to a div to make the empty component in the job page aligned in the middle as all other pages having empty component aligned to its center.