Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Bootstrap theme breaking on page navigation or hot reload

$
0
0

I implemented a Bootstrap theme using Blazor. Everything seems to work properly, except when I navigate to a new page or use hot reload in Visual Studio. In those cases the css seems to break a bit (but not massively). A reload fixes it. Does anybody have any idea how I can fix this or figure out what's going on?

This is what it normally looks like:

enter image description here

And this is what it looks like after a hot reload or page navigation:

enter image description here

So it's less wide and the icons and positioning are getting messed up.

I don't see any errors or warning in the console.

I have the blazor script at the very end of the body tag:

<script src="_framework/blazor.web.js"></script></body>

I created the project using the Blazor Web App template, using .NET 8. "Interactive render mode" is set to "Server" and "Interactivity location" to "Per page/component".

I'm unfortunately unable to share my git repository, since I'm using a paid Bootstrap theme, which doesn't allow me sharing it.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>