AlauStone commited on
Commit
a3bb14d
·
verified ·
1 Parent(s): 8b0ea21

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -345,6 +345,24 @@ def _get_custom_css():
345
  flex-shrink: 0 !important;
346
  z-index: 1 !important;
347
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  </style>
349
  """
350
 
@@ -1058,7 +1076,6 @@ def process_upload(uploaded_files, target_prefix, scope):
1058
  # 清除文件列表缓存
1059
  _list_uploaded_files_db.clear()
1060
  st.toast(f"✅ 导入 {len(all_new_chunks)} 个切片")
1061
- st.rerun()
1062
  else:
1063
  st.error("解析失败,未发现有效文字内容。")
1064
  except Exception as e:
 
345
  flex-shrink: 0 !important;
346
  z-index: 1 !important;
347
  }
348
+ /* 移动端侧边栏文件列表布局修复 */
349
+ @media (max-width: 768px) {
350
+ [data-testid="stSidebar"] [data-testid="stHorizontalBlock"] {
351
+ display: flex !important;
352
+ flex-direction: row !important;
353
+ justify-content: space-between !important;
354
+ align-items: center !important;
355
+ width: 100% !important;
356
+ }
357
+ [data-testid="stSidebar"] [data-testid="stHorizontalBlock"] > div:first-child {
358
+ flex: 1 !important;
359
+ min-width: 0 !important;
360
+ }
361
+ [data-testid="stSidebar"] [data-testid="stHorizontalBlock"] > div:last-child {
362
+ flex: 0 0 auto !important;
363
+ margin-left: 8px !important;
364
+ }
365
+ }
366
  </style>
367
  """
368
 
 
1076
  # 清除文件列表缓存
1077
  _list_uploaded_files_db.clear()
1078
  st.toast(f"✅ 导入 {len(all_new_chunks)} 个切片")
 
1079
  else:
1080
  st.error("解析失败,未发现有效文字内容。")
1081
  except Exception as e: