removed style attribute to make csp work

This commit is contained in:
Patrick 2025-07-21 06:13:14 +02:00
parent 9cc67e217a
commit da2caca2d6
2 changed files with 12 additions and 3 deletions

View File

@ -7,8 +7,9 @@
%sveltekit.head% %sveltekit.head%
<link rel="stylesheet" href="%sveltekit.assets%/global.css" /> <link rel="stylesheet" href="%sveltekit.assets%/global.css" />
<style nonce="%sveltekit.nonce%"> .sveltekit-body { display: contents; } </style>
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div> <div class=".sveltekit-body">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@ -10,7 +10,7 @@
<li><a href="/schaetzung">Stundenschätzung</a></li> <li><a href="/schaetzung">Stundenschätzung</a></li>
<li><a href="/dokumente">Dokumente</a></li> <li><a href="/dokumente">Dokumente</a></li>
<li style="height: 20px"></li> <li class="separator"></li>
<li>Benutzerverwaltung</li> <li>Benutzerverwaltung</li>
<li> <li>
<form method="POST" action="/login?/logout"> <form method="POST" action="/login?/logout">
@ -21,7 +21,7 @@
</div> </div>
{/snippet} {/snippet}
<div style:display="flex"> <div class="navcontainer">
{@render nav("navpos nav")} {@render nav("navpos nav")}
{@render nav("navpseudo nav")} {@render nav("navpseudo nav")}
@ -33,6 +33,10 @@
<style> <style>
.navcontainer {
display: flex;
}
.navpos { .navpos {
position: fixed; position: fixed;
top: 0; top: 0;
@ -65,6 +69,10 @@
padding-bottom: 5px; padding-bottom: 5px;
} }
.nav .separator {
height: 20px;
}
.nav button { .nav button {
padding: 0; padding: 0;
border: none; border: none;