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

[Bug Report] v-pagination component too wide, if length is large #11242

Closed
laberning opened this issue Apr 27, 2020 · 3 comments
Closed

[Bug Report] v-pagination component too wide, if length is large #11242

laberning opened this issue Apr 27, 2020 · 3 comments
Assignees
Labels
C: VPagination VPagination T: bug Functionality that does not work as intended/expected
Milestone

Comments

@laberning
Copy link

Environment

Vuetify Version: 2.2.23
Vue Version: 2.6.11
Browsers: Chrome 81.0.4044.92
OS: Windows 10

Steps to reproduce

Create a v-pagination-component with large length, i.e.

  <v-pagination
    v-model="page"
    :length="10000"
  ></v-pagination>

Expected Behavior

The rendered component should fit into the available screen size.

Actual Behavior

The component is larger than the available screen size.

Reproduction Link

https://codepen.io/laberning/pen/rNOmbdL

Other comments

The implementation assumes a fixed width per "page"-button, but pages with high numbers need more space.

this.maxButtons = Math.floor((width - 96) / 42)

@ghost ghost added the S: triage label Apr 27, 2020
@ElijahKotyluk ElijahKotyluk added C: VPagination VPagination T: bug Functionality that does not work as intended/expected and removed S: triage labels Apr 27, 2020
@bkpedrosuper
Copy link

I am actually having the same problem.

@bkpedrosuper
Copy link

bkpedrosuper commented Jun 9, 2020

problem
I kinda solved.
what I did was set the prop total-visible to "12". It still doesn't fit the page correctly, but the main problem is now solved.

<v-pagination v-if="pages" class="text-xs-center pt-3 r-pagination" v-model="pagination.page" :length="pages" total-visible="12" />

@KaelWD KaelWD added this to the v3.0.0 milestone Jun 30, 2021
KaelWD added a commit that referenced this issue Jun 30, 2021
resolves #4201
fixes #11242
resolves #8759 (use slot)
fixes #12395
resolves #2070
resolves #5028
fixes #8146
resolves #2541
fixes #11662
fixes #12232
resolves #10085

Co-authored-by: John Leider <john.j.leider@gmail.com>
Co-authored-by: Kael <kaelwd@gmail.com>
@KaelWD KaelWD closed this as completed Jun 30, 2021
@AhmadIshtiaq
Copy link

I'm also facing the same issue in vuexy-vuejs-admin-template.
when page length is large(eg.1000000) then page number doesn't fit in the page border it should.
it should increase the page size when page number increase
If someone find any solution please share with us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VPagination VPagination T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

6 participants