Spaces:
Running
Running
Zenith Wang
commited on
Commit
·
28d20d3
1
Parent(s):
613a3b0
Further reduce File component height to 45px for more compact UI
Browse files
app.py
CHANGED
|
@@ -243,25 +243,34 @@ def process_message(message, history, images, system_prompt, temperature, max_to
|
|
| 243 |
|
| 244 |
# 创建Gradio界面
|
| 245 |
css = """
|
| 246 |
-
.compact-
|
| 247 |
-
|
|
|
|
| 248 |
}
|
| 249 |
-
.compact-
|
| 250 |
-
|
| 251 |
-
max-height:
|
| 252 |
}
|
| 253 |
-
.compact-
|
| 254 |
-
|
|
|
|
| 255 |
}
|
| 256 |
-
.compact-file
|
| 257 |
-
|
|
|
|
| 258 |
}
|
| 259 |
.compact-file .file-preview {
|
| 260 |
-
max-height:
|
| 261 |
overflow-y: auto !important;
|
|
|
|
| 262 |
}
|
| 263 |
-
.compact-file
|
| 264 |
-
height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
}
|
| 266 |
"""
|
| 267 |
|
|
|
|
| 243 |
|
| 244 |
# 创建Gradio界面
|
| 245 |
css = """
|
| 246 |
+
.compact-file {
|
| 247 |
+
height: 45px !important;
|
| 248 |
+
max-height: 45px !important;
|
| 249 |
}
|
| 250 |
+
.compact-file > div {
|
| 251 |
+
height: 45px !important;
|
| 252 |
+
max-height: 45px !important;
|
| 253 |
}
|
| 254 |
+
.compact-file .wrap {
|
| 255 |
+
height: 45px !important;
|
| 256 |
+
max-height: 45px !important;
|
| 257 |
}
|
| 258 |
+
.compact-file label {
|
| 259 |
+
font-size: 11px !important;
|
| 260 |
+
margin-bottom: 2px !important;
|
| 261 |
}
|
| 262 |
.compact-file .file-preview {
|
| 263 |
+
max-height: 30px !important;
|
| 264 |
overflow-y: auto !important;
|
| 265 |
+
font-size: 11px !important;
|
| 266 |
}
|
| 267 |
+
.compact-file input[type="file"] {
|
| 268 |
+
height: 30px !important;
|
| 269 |
+
font-size: 11px !important;
|
| 270 |
+
}
|
| 271 |
+
.compact-file .upload-container {
|
| 272 |
+
min-height: 30px !important;
|
| 273 |
+
max-height: 30px !important;
|
| 274 |
}
|
| 275 |
"""
|
| 276 |
|