-
Notifications
You must be signed in to change notification settings - Fork 1
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
Align pagination buttons with listings column #648
Conversation
hey @anders-schneider we can chat more tomorrow but I like how it looks with your changes! To your questions, after skimming:
|
Thanks for taking a quick look at this a few days ago @avaleske! It's now in ready-to-actually-be-reviewed shape :) A few notes:
And two questions:
|
… listing card: yes or no?)
Thanks so much @avaleske for your help on chat on this!! I think I've got this in shape for another pass whenever you have time. |
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.
Thank you!
* Align pagination buttons with listings * messing around with pulling styles into a class * Rework the class using tailwind style rules * Move "width: 100%" so that it always applies, regardless of screen size * Pass styling options in as a AgPaginationProp (so that this change only affects one instance of AgPagination) * Fix the border issues by passing in an includeBorder prop * Switch max-width param to be a simple boolean (match the width of the listing card: yes or no?) * Rename data-pager to data-pager-container * Rename pagination-bar to data-pager * Fix variable names * Refactor the include-border and data-pager-container classes
Issue
Description
This change makes it so that the buttons in the bottom pagination bar of the "view all listings" don't extend to the horizontal extrema and instead are aligned with the listings column.
It also removes the border from the pagination bar on the "view all listings" page.
Before:

After:

This change does not affect the prev/next buttons on the mobile view (where there is no issue with the bottom pagination bar being too wide). In the mobile view, all it does it remove the weird rounded bottom corners:
Before:

After:

Type of change
How Can This Be Tested/Reviewed?
There are six instances of
AgPagination
between the public and partner sites. I looked at each in desktop and mobile views.Checklist:
yarn generate:client
if I made backend changes