-
Notifications
You must be signed in to change notification settings - Fork 69
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 issue #227 - Improve the case table with sorting and pagination #245
base: main
Are you sure you want to change the base?
Fix issue #227 - Improve the case table with sorting and pagination #245
Conversation
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.
Please re-synchronize with main and resolve conflicts
<style> | ||
.pagination { | ||
display: flex; | ||
justify-content: center; | ||
padding: 8px 0; | ||
} | ||
|
||
.pagination-list { | ||
display: flex; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.pagination-link { | ||
font-size: 12px; | ||
padding: 4px 8px; | ||
margin: 0 2px; | ||
background-color: #f8f9fa; | ||
color: #555; | ||
border: 2px solid orangered; | ||
border-radius: 3px; | ||
text-decoration: none; | ||
transition: background-color 0.2s, color 0.2s; | ||
} | ||
|
||
.pagination-link:hover { | ||
background-color: orangered; | ||
color: white; | ||
border: 2px solid orangered; | ||
} | ||
|
||
.pagination-link.is-current { | ||
background-color: orangered; | ||
color: #fff; | ||
border-radius: 15px; | ||
border-color: orangered; | ||
} | ||
|
||
.pagination-link.is-rounded { | ||
border-radius: 15px; | ||
} | ||
|
||
.pagination-link:disabled { | ||
pointer-events: none; | ||
color: #ccc; | ||
background-color: #f0f0f0; | ||
} | ||
</style> |
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.
Inline CSS should be avoided
legal_db/static/listing.js
Outdated
paginationList.scrollIntoView({ behavior: 'smooth', block: 'center' }); | ||
} | ||
} | ||
}); |
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.
please ensure the newline at end of file remains
Hi @TimidRobot , Thank you for the feedback. I have removed the inline style and ensured newline at the end of the file as suggested. Regards. |
The repository now has development data. Please load it and confirm that pagination works correctly with filters. |
Fixes
Description
This pull request enhances the pagination component of the legal cases listing page on the Creative Commons
legal_db
site. It improves user experience by ensuring that the pagination controls are visually appealing and easily accessible when navigating through multiple pages. The changes include updated HTML structure and CSS styling for better aesthetics, along with a JavaScript implementation that automatically scrolls to the pagination area upon page navigation, ensuring a seamless user experience without cluttering the URL with hash fragments.Technical details
It implements a
flexbox
layout for improved alignment and responsiveness, updatesCSS
styles for enhanced visibility and interactivity of pagination links, and includes aJavaScript
function that smoothly scrolls to the pagination area on page load. TheURL
remains clean without hash fragments, enhancing overall user navigation experience.Screenshots
pagination.mp4
Checklist
Update index.md
).main
ormaster
).visible errors.
Developer Certificate of Origin
For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."
Developer Certificate of Origin