I am looking to design a navigation bar that includes router-link
items, with each item displaying an icon on the left side and text on the right side.
An example of this design can be seen in the Firebase navigation bar.
https://i.sstatic.net/eg328.png
The navigation bar I created looks like this:
https://i.sstatic.net/UY8MS.png
However, as you may notice, the items are not vertically centered. To demonstrate my code, I have provided a small fiddle with the key file being Navbar.vue.
https://codesandbox.io/s/31jw7ql3ym
Removing the icons solves the vertical centering issue for the text. How can I ensure both the icon and text stay centered when added together?