body spacing

This commit is contained in:
Ruidy 2025-06-23 19:07:57 +02:00
parent e72ad67c98
commit 5a566ac13d
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ templ BaseLayout() {
<!DOCTYPE html>
<html lang="en" data-theme="dracula">
@head()
<body hx-boost="true" style="display: flex; flex-direction: column; min-height: 100vh;">
<body hx-boost="true" class="min-h-screen flex flex-col p-4 sm:p-6 md:p-8">
@navbar()
<main class="container mx-auto flex flex-col flex-grow">
{ children... }

View file

@ -39,7 +39,7 @@ func BaseLayout() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<body hx-boost=\"true\" style=\"display: flex; flex-direction: column; min-height: 100vh;\">")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<body hx-boost=\"true\" class=\"min-h-screen flex flex-col p-4 sm:p-6 md:p-8\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}