From d1512a1f797a9199f194f8fa311ce56567b1979d Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove <36002865+dennis1248@users.noreply.github.com> Date: Thu, 20 Mar 2025 22:19:45 +0100 Subject: [PATCH] Ensure content flows and stays centered on small screens (#27) * Ensure content flows and stays centered on small screens Fixes #18 * Do not overflow image, instead resize with page * update CHANGELOG Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso Co-authored-by: Xe Iaso --- cmd/anubis/index.templ | 7 +++---- cmd/anubis/index_templ.go | 20 ++++++++++---------- cmd/anubis/static/js/main.mjs.gz | Bin 1194 -> 1194 bytes docs/docs/CHANGELOG.md | 2 ++ xess/xess.css | 6 ------ xess/xess.min.css | 2 +- 6 files changed, 16 insertions(+), 21 deletions(-) diff --git a/cmd/anubis/index.templ b/cmd/anubis/index.templ index a2270fa..aaec7b6 100644 --- a/cmd/anubis/index.templ +++ b/cmd/anubis/index.templ @@ -19,7 +19,6 @@ templ base(title string, body templ.Component) { display: flex; justify-content: center; align-items: center; - width: 65ch; margin-left: auto; margin-right: auto; } @@ -165,13 +164,13 @@ templ index() {
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "\">") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -75,7 +75,7 @@ func base(title string, body templ.Component) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 147, Col: 49} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 146, Col: 49} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -118,7 +118,7 @@ func index() templ.Component { templ_7745c5c3_Var5 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "