From 22771fad3011bdd00cb6e51db99472ea914a923a Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Mon, 20 Oct 2025 12:03:58 +0200 Subject: [PATCH] fix(ui): remove extra helpers from statuspages (#9753) These helpers are harmless for the normal Forgejo UI but are causing the viewport to break if the page is taller than the screen, causing overflow scroll in both directions. Example: 404 page on Codeberg breaks because Codeberg is making the content of all pages full screen height before footer. Originally added in bb50ab28613e9c39a57da98e873314e1739f4c14 but were likely made unused by some change at a later point, maybe in 91b5aa0e5f54ed6224c165e41ebc430bb06ad155. I was not able to find a viewport where toggling this class via devtools would make any visual difference. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9753 Reviewed-by: Gusted --- templates/status/404.tmpl | 2 +- templates/status/413.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index bf6420aef3..3407f06825 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -
+
{{if .IsRepo}}{{template "repo/header" .}}{{end}}

404

diff --git a/templates/status/413.tmpl b/templates/status/413.tmpl index 75cb3d04a6..f488227671 100644 --- a/templates/status/413.tmpl +++ b/templates/status/413.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -
+
{{if .IsRepo}}{{template "repo/header" .}}{{end}}

413