From 9a3e75d1382379bfe6917cff4ded78982f7b32f1 Mon Sep 17 00:00:00 2001 From: nixevol Date: Wed, 16 Sep 2026 17:16:29 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BE=A7=E6=A0=8F=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=A7=BB=E5=88=B0=E5=A4=96=E4=BE=A7=E5=B9=B6?= =?UTF-8?q?=E8=B4=B4=E9=A1=B6=E6=98=BE=E7=A4=BA=E5=93=81=E7=89=8C=E5=AF=BC?= =?UTF-8?q?=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/layout.py | 110 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 82 insertions(+), 28 deletions(-) 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"")