From 3a3a9a895b2153b7e588fd0cdae9c5d3e05b5f33 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 20 May 2026 23:03:52 +0000 Subject: [PATCH] fix(gui): stop overstretching pages, restore footer clearance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two layout bugs were hiding the bottom of every tool page behind the sticky footer: 1. ``.stApp`` and the main/sidebar containers were forced to ``min-height: calc(100vh / 0.85)``, ≈ 17.6% taller than the viewport, to mask a white bar caused by the ``zoom: 0.85`` scaler. That hack stretches short pages and pushes long-page content past the visible area. Drop the calc factor — plain ``100vh`` fills the visible viewport without forced overflow. 2. ``render_sticky_footer``'s stylesheet re-set the block container's ``padding-bottom`` to ``2rem``, overriding the ``7rem`` reserved by ``hide_streamlit_chrome``. The footer (~40px tall) needs more than 32px of clearance, so the last row of content was sliding behind the footer. Remove the override and let chrome's reservation stand. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/gui/components/_legacy.py | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/src/gui/components/_legacy.py b/src/gui/components/_legacy.py index fd1bc68..8dd9637 100644 --- a/src/gui/components/_legacy.py +++ b/src/gui/components/_legacy.py @@ -1704,29 +1704,26 @@ def render_sticky_footer() -> None: st.markdown( """