Version 2021/07
Due to a min-width
CSS styling of default AppGini navbar, there is a (minimal) gap between last navbar-button and the right page margin:
Default - before

Code
This gap can be removed using the following code:
AppGiniHelper.common.getNavbar().expand();
After

Tip: Use this in combination with .fix()
function
This will "inline" the separate buttons with the navbar items.
AppGiniHelper.common.getNavbar() .expand() .fix();

Do you like it?
We can only get better if you give us constructive suggestions for improvement. Just voting "No" without giving reasons or suggestions is not helpful and cannot lead to changes.
If you have been searching for a completely different solution than the subject says, this article can not be and will not be helpful for you. In these cases you should consider not to vote.
If something is not working as expected with your code, please post your detailed bugreport in the forum and make use of the free community support. This here is website feedback, only.