We also need some way to keep it from getting so wide on narrow displays. On my phone, once you're a few pages in, the next page arrow is all the way on the edge of the screen. Multiple times I've gone to the very last page cause it's hard to click the next page arrow. Not even sure what the use case is to go to the last page.
Here's a screenshot showing page 10. The pagination displays so many page numbers in this case that the arrows are completely off screen (lower page numbers will have them getting closer to the edge).