fix(footer): render sticky Close+Help footer on the home page too
The sticky footer was only wired into the 9 tool pages — the home
page (``_home.py``) called ``hide_streamlit_chrome`` but never
``render_sticky_footer``, so the app-level Close+Help bar was
missing whenever the user was on the home page. Add the call.
Also drop the home page's now-redundant trailing
``st.divider() + st.caption(t("chrome.footer"))`` block — same
"blank white bar above the sticky footer" symptom that motivated
removing the per-page version from the tool pages.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,11 @@ def _home_page() -> None:
|
|||||||
wipes the analysis cache, not the upload stash — the files
|
wipes the analysis cache, not the upload stash — the files
|
||||||
persist until the user explicitly removes them.
|
persist until the user explicitly removes them.
|
||||||
"""
|
"""
|
||||||
from src.gui.components import hide_streamlit_chrome, render_findings_panel
|
from src.gui.components import (
|
||||||
|
hide_streamlit_chrome,
|
||||||
|
render_findings_panel,
|
||||||
|
render_sticky_footer,
|
||||||
|
)
|
||||||
from src.gui.components._legacy import _run_analysis_on_upload
|
from src.gui.components._legacy import _run_analysis_on_upload
|
||||||
from src.i18n import t
|
from src.i18n import t
|
||||||
|
|
||||||
@@ -63,6 +67,7 @@ def _home_page() -> None:
|
|||||||
layout="wide",
|
layout="wide",
|
||||||
)
|
)
|
||||||
hide_streamlit_chrome()
|
hide_streamlit_chrome()
|
||||||
|
render_sticky_footer()
|
||||||
|
|
||||||
st.title(t("home.title"))
|
st.title(t("home.title"))
|
||||||
st.caption(t("home.caption"))
|
st.caption(t("home.caption"))
|
||||||
@@ -255,6 +260,3 @@ def _home_page() -> None:
|
|||||||
header=f"📄 {name}",
|
header=f"📄 {name}",
|
||||||
key_namespace=name,
|
key_namespace=name,
|
||||||
)
|
)
|
||||||
|
|
||||||
st.divider()
|
|
||||||
st.caption(t("chrome.footer"))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user