How to limit max-width navbar (OJS3 bootstrap child theme)?

How to limit navbar width to context block width?navbar
Which file needs to be modified ? Now this option is set to the width of the screen.