Update app.py
Browse files
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:
|
|
|
|
| 141 |
}
|
|
|
|
| 142 |
td, th {
|
| 143 |
-
white-space: nowrap !important;
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
| 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 |
|