use a flex-box to improve the alignment of message navigation buttons