Add the w3-padding-classes to change the padding of each link inside the navbar.
Default:
w3-padding-16:
w3-padding-24:
w3-padding-32:
Note: You can also add padding to the navbar, instead of each link. However, if you do this, note that the links do not get full padding on hover: