Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Bastet's avatar
Level 1

Creating a new inertia layout with bootstrap

I'm busy playing around with trying to create a new look with inertia using bootstrap, but the issue i'm having is that my to nav bar isn't filling the top section of my page. I'm not sure if I'm missing something that I'm supposed to do. I know that if I just added my code to the blade file the nav bar looks exactly like how I want it, it's only when it's in my MainLayout.vue file that it doesn't.

This is my main.blade.php

this is my MainLayout.vue

and this is my vite.config.js

0 likes
1 reply
Bastet's avatar
Bastet
OP
Best Answer
Level 1

I figured out where I went wrong. In my main.blade.php I had <div class="app-wrapper"> wrapped around the @inertia so I removed that and added that to the first div that was wrapped around the nav code

Please or to participate in this conversation.