Update app.py
Browse files
app.py
CHANGED
|
@@ -248,28 +248,36 @@ with gr.Blocks(css="""
|
|
| 248 |
background-color: #DCF8C6 !important;
|
| 249 |
text-align: left !important;
|
| 250 |
}
|
| 251 |
-
|
| 252 |
-
|
|
|
|
| 253 |
padding: 0px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
margin: 0px !important;
|
| 255 |
-
|
| 256 |
border: none !important;
|
|
|
|
| 257 |
}
|
| 258 |
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
}
|
| 263 |
|
|
|
|
| 264 |
body, html {
|
| 265 |
-
margin:
|
| 266 |
-
padding:
|
| 267 |
}
|
| 268 |
|
| 269 |
-
#chatbox {
|
| 270 |
-
padding: 0 !important;
|
| 271 |
-
margin: 0 !important;
|
| 272 |
-
}
|
| 273 |
|
| 274 |
#chatbox .message.assistant { background-color: #ffffff !important; }
|
| 275 |
footer { display: none !important; }
|
|
|
|
| 248 |
background-color: #DCF8C6 !important;
|
| 249 |
text-align: left !important;
|
| 250 |
}
|
| 251 |
+
/* 聊天界面周边边距去除 */
|
| 252 |
+
#chatbox {
|
| 253 |
+
margin: 0px !important;
|
| 254 |
padding: 0px !important;
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
/* 整体 Blocks 容器的内外边距移除 */
|
| 258 |
+
.gr-box, .gr-block.gr-box {
|
| 259 |
margin: 0px !important;
|
| 260 |
+
padding: 0px !important;
|
| 261 |
border: none !important;
|
| 262 |
+
box-shadow: none !important;
|
| 263 |
}
|
| 264 |
|
| 265 |
+
/* 页面顶层结构的边距压掉 */
|
| 266 |
+
.wrap, .gr-container {
|
| 267 |
+
padding: 0px !important;
|
| 268 |
+
margin: 0px auto !important;
|
| 269 |
+
max-width: 100% !important;
|
| 270 |
+
width: 100% !important;
|
| 271 |
+
box-shadow: none !important;
|
| 272 |
+
border: none !important;
|
| 273 |
}
|
| 274 |
|
| 275 |
+
/* 页面的 body 和 html 去掉默认边距 */
|
| 276 |
body, html {
|
| 277 |
+
margin: 0px !important;
|
| 278 |
+
padding: 0px !important;
|
| 279 |
}
|
| 280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
|
| 282 |
#chatbox .message.assistant { background-color: #ffffff !important; }
|
| 283 |
footer { display: none !important; }
|