From e282f061dc1603c0fb0e82f5f35b1fd3ddc3547e Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 18 May 2026 22:11:24 +0000 Subject: [PATCH] test(home): move marker to true bottom of main content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User reported the previous TEST #2 banner appeared at the *top* of the main content area instead of the bottom. Root cause: on the home page, ``render_sticky_footer()`` is called at line 107 — before ``st.title()`` — so anything that function injects in document flow lands at the top of ``stAppViewBlockContainer``. Other pages call ``render_sticky_footer()`` at the end of their script, so the flow content lands at the bottom there. Remove the marker from ``render_sticky_footer`` and add it directly at the very end of ``_home._home_page()`` — after the findings panels. If this banner lines up with the offending white strip when scrolled to the bottom, the strip is something rendered at the tail of the page (likely an iframe wrapper from ``render_findings_panel`` or the block container's ``padding-bottom``). Co-Authored-By: Claude Opus 4.7 (1M context) --- src/gui/_home.py | 14 ++++++++++++++ src/gui/components/_legacy.py | 16 ---------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/gui/_home.py b/src/gui/_home.py index 1df4482..1602c4a 100644 --- a/src/gui/_home.py +++ b/src/gui/_home.py @@ -288,3 +288,17 @@ def _home_page() -> None: header=f"📄 {name}", key_namespace=name, ) + + # TEMP: visible marker at the very end of the home page's main + # content. Used to locate the "white bar" the user wants removed. + # If this red banner lines up with the offending white strip when + # scrolled to the bottom, the strip is something rendered right + # here at the tail of ``stAppViewBlockContainer``. + st.markdown( + '
' + '◀ CLAUDE TEST #3 — END OF MAIN CONTENT — IS THIS THE WHITE BAR? ▶' + '
', + unsafe_allow_html=True, + ) diff --git a/src/gui/components/_legacy.py b/src/gui/components/_legacy.py index e1b6f58..18e5401 100644 --- a/src/gui/components/_legacy.py +++ b/src/gui/components/_legacy.py @@ -787,22 +787,6 @@ a[data-testid="stPageLink-NavLink"][href*="close"] { except Exception: pass - # TEMP: visible marker in the main content flow, immediately before - # the footer-injection iframe. This lands at the very bottom of - # ``stAppViewBlockContainer`` — right where the user reports a - # white strip clipping text when scrolling. If this red bar lines - # up with the offending strip, the strip is the iframe wrapper - # (``stElementContainer`` around ``st.iframe``) or the block - # container's ``padding-bottom: 3rem`` reservation. - st.markdown( - '
' - '◀ CLAUDE TEST #2 — IS THIS THE WHITE BAR? ▶' - '
', - unsafe_allow_html=True, - ) - st.iframe( f"""