Getting navbar to be responsive

So I played around with the navbar in one of the templates, and I’m changing it for my own liking.
However, it lost a feature in the process and I’m wondering how to get it back.

This is what happens now…it extends past the screen for the tablets and phones.

alright, I solved it. changed width to 100%. Delete this shit