Skip to content

[TP/Pagination improvement] Adaptive Pagination: Display more page links when sufficient width is available #966

@ericbolikowski

Description

@ericbolikowski

Context/background

The TL;DR: out of the 80+ paginated Browse Jobseeker pages, only a few page links appear in pagination navigation, in spite of available horizontal whitespace. Implement a "show more page links when width is large enough" logic.

The below discussion took place in a related PR.

Would you be interested in (and have time for) rendering a variable number of pagination items based on container width? There's containerElement.offsetWidth tells you how much horizontal space is available in the element containing the pagination element, and if you know how many pixels each item takes up, you can with a bit of simple math figure out how many elements should be rendered.

Originally posted by @ericbolikowski in #915 (comment)

What needs to be done?

TBD later

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions