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

Grid component: Pagination, items selection, and items per page, in small screens #1019

Open
tetexxr opened this issue Feb 1, 2025 · 2 comments
Milestone

Comments

@tetexxr
Copy link

tetexxr commented Feb 1, 2025

When using Grid component in small screens, the pagination, the items per page selection, and the total items label, they are not well laid out and become illegible.

To reproduce this behaviour, the example page can be used: https://demos.blazorbootstrap.com/grid/paging
Resizing the screen is very clear.

Image

@gvreddy04
Copy link
Contributor

@tetexxr Thank you for your feedback. We will adress this in the upcoming release.

@gvreddy04 gvreddy04 added this to the 3.4.0 milestone Feb 1, 2025
@tetexxr
Copy link
Author

tetexxr commented Feb 2, 2025

Thanks to you @gvreddy04 for the great work you have done.
As a workaround, I've added a style that more or less solves the problem, in case it can give you an idea of a possible solution:

@media (max-width: 1000px) {
    .table-fix-pagination + div {
        flex-direction: column;
    }

    .table-fix-pagination + div .justify-content-center {
        justify-content: unset !important;
        margin-bottom: 0.5rem;
    }
}

And in the Grid component, add this:

GridContainerClass="table-fix-pagination"

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

No branches or pull requests

2 participants