Currently the views mini pager is shown even if there is only one page of items. IMHO the pager should not be shown if there is only one page of items. This is also how the way how Drupal Core handles this (views-mini-pager.html.twig).
I suppose the problem arises because Radix is using the same twig for full pager and mini pager. Mini pager is handling it different from the full pager. Full pager has an empty items array if there is only one page, while mini pager fills the items array even if there is only one page.
I propose a patch to get this in line with the Drupal core behavior.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_mini_pager_should_not_show_if_there_is_only_one_page_of_items-3084620-002.patch | 495 bytes | stefan.korn |
Issue fork radix-3084620
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
stefan.kornComment #3
shadcn CreditAttribution: shadcn at Chapter Three commentedTested. Looks good. RTBC. Thanks Stefan for all the patches. Really appreciate this.
Comment #4
stefan.korn@arshadcn: Thanks for thanks :-) - I really love Radix
Comment #6
shadcn CreditAttribution: shadcn at Chapter Three commentedCommitted. 👍