From 32e68d10654dd9c7578f46067fdb40b32becf81f Mon Sep 17 00:00:00 2001 From: Marcus Aurelius <91024694+0xAurelius@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:42:32 +0800 Subject: [PATCH] Replace broken jumbotron error page --- src/apps/tco2_dashboard/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/tco2_dashboard/app.py b/src/apps/tco2_dashboard/app.py index aa75d328..3411c5b2 100644 --- a/src/apps/tco2_dashboard/app.py +++ b/src/apps/tco2_dashboard/app.py @@ -1967,12 +1967,14 @@ def render_page_content(pathname): return content_nbo # If the user tries to reach a different page, return a 404 message - return dbc.Jumbotron( + return dbc.Container( [ html.H1("404: Not found", className="text-danger"), html.Hr(), html.P(f"The pathname {pathname} was not recognised..."), - ] + ], + fluid=True, + className="py-3", )