omorphia
omorphia copied to clipboard
<Pagination> with count < 5 is broken
Describe the bug
Pagination with count set between 2 and 5 is broken, producing illegal/illogical page numbers
Steps to reproduce
git clone [email protected]:modrinth/omorphia.git- install packages with manager of choice
bun i - run docs dev
bun docs:dev - change
:countindocs/components/pagination.mdfrom 100 to 2
Expected behavior
When given a count of < 7, the paginator should display 1, 2, 3, ..., count
Additional context
replacing const pages = computed(...) with the logic found in knossos or should work.
Honestly Knossos shouldn't have it's own implementation the pagination component