-
-
Notifications
You must be signed in to change notification settings - Fork 142
Added keep length parameter #163
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
PR Summary
|
@QuentiumYT This looks like a great PR. Thanks 👍 Just one issue, tests and builds are failing with:
|
Yeah had some issues with yarn when installing the dependencies. Will try to fix it :) |
There were an issue about this version of vuepress (probably renamed or deleted from dependencies) and fixed it in the lockfile to force using the latest with correct vuepress-vite dependency version. ( |
Thanks 👍 |
Hello, I recently found this projet and it really does well the job!
For user interface purposes, I needed to keep the same number of items in the pagination. Currently, when we're at page 1, it shows 4 more items on the right (2, 3, ..., 20). Seems normal not having on the left but once it's set to 10 for example, we do have 4 more elements on the left (1, ..., 8, 9) which doubles almost the length.
Before:

After:

As you can see, "after" shows 11 elements all the time, and not only at the beginning and the end.
This prop is not set to true by default to prevent package updates compatibility but I find it interesting to have. (Also, I didn't added tests (not really good at it) but feel free to do so 😃)
Thanks for having a look at it!