DeepLearning101 commited on
Commit
7bf7640
·
verified ·
1 Parent(s): 2e7e001

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -133,18 +133,24 @@ def check_login(user, password):
133
  error_msg: "<span style='color: red'>❌ 帳號或密碼錯誤</span>"
134
  }
135
 
136
- # --- 🔥 新增 CSS:強制表格寬度與捲軸 ---
137
- # 這段 CSS 會讓表格內容不換行,並在手機上出現水平捲軸
138
  custom_css = """
 
 
 
 
139
  table {
140
- min-width: 1200px !important;
 
141
  }
 
142
  td, th {
143
- white-space: nowrap !important;
144
- padding: 8px !important;
145
- }
146
- .table-wrap {
147
- overflow-x: auto !important;
 
148
  }
149
  """
150
 
 
133
  error_msg: "<span style='color: red'>❌ 帳號或密碼錯誤</span>"
134
  }
135
 
136
+ # --- 🔥 新增 CSS:強制表格寬度與捲軸 (加強版) ---
 
137
  custom_css = """
138
+ .table-wrap {
139
+ overflow-x: auto !important;
140
+ }
141
+
142
  table {
143
+ min-width: 1500px !important;
144
+ table-layout: auto !important;
145
  }
146
+
147
  td, th {
148
+ white-space: nowrap !important;
149
+ overflow: visible !important;
150
+ text-overflow: unset !important;
151
+ max-width: none !important;
152
+ width: auto !important;
153
+ padding: 10px !important;
154
  }
155
  """
156