Skip to content

Commit

Permalink
[pagination] minor update (#532)
Browse files Browse the repository at this point in the history
* [pagination] update to auto-hide ellipsis threshold

changed `ELLIPSIS_THRESHOLD` from `4` to `3`

* [pagination] documentation update
  • Loading branch information
tmorehouse committed Jun 21, 2017
1 parent 50c080d commit c8e5465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/components/pagination/README.md
Expand Up @@ -25,8 +25,8 @@ Pagination supports selveral props that allow you to customize the apperance.
| `hide-goto-end-buttons` | never display goto first/last buttons

Ellipsis inidcator(s) will only be ever shown at the front and/or end of
the page number buttons. For `limit` values less than or equal to `4`, the ellipsis indicator(s) will never
be shown for practial display reasons.
the page number buttons. For `limit` values less than or equal to `3`, the ellipsis
indicator(s) will never be shown for practial display reasons.


### Small screen support (`xs`)
Expand Down
2 changes: 1 addition & 1 deletion lib/components/pagination.vue
Expand Up @@ -122,7 +122,7 @@ function makePageArray(startNum, numPages) {
}
// Threshold of limit size when we start/stop showing ellipsis
const ELLIPSIS_THRESHOLD = 4;
const ELLIPSIS_THRESHOLD = 3;
export default {
data() {
Expand Down

0 comments on commit c8e5465

Please sign in to comment.