From 5844ff3ec323b587e0c478cf616aea2f5acd3349 Mon Sep 17 00:00:00 2001 From: Niels Mokkenstorm Date: Wed, 22 Jul 2026 14:28:50 +0200 Subject: [PATCH] fix(web): wrap the public record page in a sub-page shell --- web/src/at_record_web/view.gleam | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/web/src/at_record_web/view.gleam b/web/src/at_record_web/view.gleam index b246236..6b72e2a 100644 --- a/web/src/at_record_web/view.gleam +++ b/web/src/at_record_web/view.gleam @@ -68,7 +68,23 @@ fn authed_view(model: Model) -> Element(Msg) { /// underneath is public network data regardless of who (if anyone) is /// signed in on this browser. fn public_view(model: Model) -> Element(Msg) { - html.div([attr.class("shell")], [public_app_bar(model), public_page(model)]) + case model.route { + // The record page is a back-bar drill-down: wrap it in `.sub-page` so the + // app-bar stays fixed-height chrome and only the body flexes, instead of + // both splitting the shell height (which left a tall empty band on top). + PublicRecord(_, _) -> + html.div([attr.class("shell")], [ + html.div([attr.class("sub-page")], [ + public_app_bar(model), + public_page(model), + ]), + ]) + _ -> + html.div([attr.class("shell")], [ + public_app_bar(model), + public_page(model), + ]) + } } fn public_app_bar(model: Model) -> Element(Msg) { -- 2.51.2