lion/packages/ui/components/pagination
Tudor Gradinaru ef0af0e41c
fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624)
* fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 1

Fixes #2589

- Changed condition from  to
- This allows one extra page to be displayed without ellipsis (e.g., [1,2,3,4,5,6] instead of [1,2,3,4,5,'...',6])
- Added test case to verify ellipsis is not shown when count=6 and visiblePages=5

* Update packages/ui/components/pagination/src/LionPagination.js

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>

* test: add additional ellipsis display tests

- Add test for count=7 (visiblePages + 2) without ellipsis
- Add test for count=8 (visiblePages + 3) with ellipsis
- Update condition to visiblePages + 2 to allow both count=6 and count=7 without ellipsis

---------

Co-authored-by: gerjanvangeest <gerjanvangeest@users.noreply.github.com>
2025-11-24 09:17:41 +01:00
..
src fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624) 2025-11-24 09:17:41 +01:00
test fix(pagination): remove unnecessary ellipsis when count equals visiblePages + 2 (#2624) 2025-11-24 09:17:41 +01:00
translations feat: add Turkish (tr) translations to form-core, input-datepicker & pagination (#2516) 2025-05-15 16:56:48 +02:00