Fixed the display position of the rightmost elements in the navbar