Fixes wrapping of pagination on various screen sizes.