Problem/Motivation
If you go to Content > Media, you have a full pager.
If you go to Content > Media > Grid, you have a mini pager.
I think this should be the same for consistency.
Steps to reproduce
1. Install media and media_library.
2. Use devel_generate to generate 50 media items.
3. Go to /admin/content/media and observe the full pager.
4. Go to /admin/content/media-grid and observe the mini pager.
Proposed resolution
Use mini pager on both.
Remaining tasks
Discuss.
User interface changes
Display mini pager instead of the full pager in view "Media" (core/modules/media/config/optional/views.view.media.yml)
API changes
None.
Data model changes
None.
Release notes snippet
Media library Views (core/modules/media/config/optional/views.view.media.yml) now uses the mini pager option for consistency.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | issue_3426699_media-library-pager_7424-01.patch | 1.39 KB | theodorosploumis |
Issue fork drupal-3426699
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 #3
vensiresComment #4
theodorosploumisComment #6
theodorosploumisI think that mini pager is the better option here. The main reasons for this decision are:
1) Consistency, as mentioned on the issue title.
2) Performance. Mini pager is less heavy than the full pager.
3) Usability. Media are usually attached to Nodes. So navigating to the first or last item is not something really important.
Comment #7
theodorosploumisComment #8
theodorosploumisComment #9
smustgrave commentedI’m actually of the opposite mindset and think both should use full. We use full on block content and content views
What’s the reason to use mini vs fill?
Comment #10
vensires@smustgrave, I think that the points already addressed by @theodorosploumis in #6 is the answer you are looking for:
Feel free to express your objection on the previous points though.
I leave this as Needs Work because I'm not 100% sure the patch and the MR are in accordance.