diff --git a/ui/layout.py b/ui/layout.py index 60a5671..6f4be21 100644 --- a/ui/layout.py +++ b/ui/layout.py @@ -2,73 +2,127 @@ import streamlit as st COMPACT_CSS = """ - """ def apply_compact_layout(): - st.markdown(COMPACT_CSS, unsafe_allow_html=True) + # st.html 比 markdown 更稳定地注入样式,避免侧栏折叠按钮样式被忽略。 + st.html(f"")