robert-damoc / game-stats

0 stars 0 forks source link

Paginate games table in UI #31

Closed MariusTulbure closed 1 year ago

MariusTulbure commented 1 year ago

Fixes https://github.com/robert-damoc/game-stats/issues/22

image
robert-damoc commented 1 year ago

I was looking at the pagy documentation, and saw we can make some changes to the defualts there (link)

pagy_info(@pagy) looks like something cool we can add above the table

I think it'd also be (maybe) helpful to add the per_page selector there: pagy_items_selector_js

MariusTulbure commented 1 year ago

About the pagy_items_selector_js I thinck it would not look good beacouse it comes in only one style which I, personally, do not realy like. I inserted pagy_info(@pagy).

image
robert-damoc commented 1 year ago

Ok, we can skip the pagy_items_selector_js.

But for the info, I think that one should be above the games table

MariusTulbure commented 1 year ago
image

What do you think? Should I style it a bit, how do you think I should do it?