feat(layout): remove unnecessary divs
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled

This commit is contained in:
2025-05-08 13:11:56 +02:00
parent a58e8c6694
commit 8f392fb0a8

View File

@@ -29,7 +29,6 @@ templ Layout(slot templ.Component, user templ.Component, loggedIn bool, path str
</head>
<body class="h-screen flex flex-col" hx-headers='{"csrf-token": "CSRF_TOKEN"}'>
// Header
<div class="">
<nav class="flex bg-white items-center gap-2 py-1 px-2 h-12 md:gap-10 md:px-10 md:py-2">
<a href="/" class="flex gap-2 mr-20">
<img class="w-6" src="/static/favicon.svg" alt="SpendSparrow logo"/>
@@ -45,15 +44,12 @@ templ Layout(slot templ.Component, user templ.Component, loggedIn bool, path str
</div>
</nav>
<div class="h-12 fixed top-12 mr-4 inset-0 bg-linear-0 from-transparent to-white"></div>
</div>
// Content
<div class="flex-1 overflow-auto">
<main class="h-full">
<main class="flex-1 overflow-auto">
if slot != nil {
@slot
}
</main>
</div>
// Footer
<!-- </div> -->
<div id="toasts" class="fixed bottom-4 right-4 ml-4 max-w-96 flex flex-col gap-2 z-50">