AlauStone commited on
Commit
b9cd76c
·
verified ·
1 Parent(s): 11540c3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -108,14 +108,6 @@ def inject_custom_css():
108
  /* 减少标题上方空白 */
109
  .block-container { padding-top: 5rem !important; padding-bottom: 6rem !important; }
110
 
111
- /* 确保主内容区域可以正常滚动 */
112
- [data-testid="stMain"] {
113
- overflow: visible !important;
114
- }
115
- [data-testid="stMainBlockContainer"] {
116
- overflow: visible !important;
117
- }
118
-
119
  /* 固定标题在顶部 */
120
  .main-title {
121
  position: fixed !important;
@@ -139,6 +131,12 @@ def inject_custom_css():
139
  z-index: 9999 !important;
140
  background: white !important;
141
  }
 
 
 
 
 
 
142
  </style>
143
  """, unsafe_allow_html=True)
144
 
 
108
  /* 减少标题上方空白 */
109
  .block-container { padding-top: 5rem !important; padding-bottom: 6rem !important; }
110
 
 
 
 
 
 
 
 
 
111
  /* 固定标题在顶部 */
112
  .main-title {
113
  position: fixed !important;
 
131
  z-index: 9999 !important;
132
  background: white !important;
133
  }
134
+
135
+ /* 确保聊天容器可滚动 */
136
+ [data-testid="stVerticalBlockBorderWrapper"] {
137
+ overflow-y: auto !important;
138
+ -webkit-overflow-scrolling: touch !important;
139
+ }
140
  </style>
141
  """, unsafe_allow_html=True)
142