Spaces:
Running on Zero
Running on Zero
Mobile layout: full-width panels, raw CSS injection
Browse files
app.py
CHANGED
|
@@ -572,7 +572,7 @@ def _install_routes(app):
|
|
| 572 |
if __name__ == "__main__":
|
| 573 |
demo.queue(default_concurrency_limit=2, max_size=64)
|
| 574 |
demo.launch(
|
| 575 |
-
theme=brand.THEME, css=brand.CSS, js=brand.JS, head=brand.HEAD,
|
| 576 |
favicon_path=str(HERE / "static" / "icons" / "favicon-64.png"),
|
| 577 |
server_name=os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0"),
|
| 578 |
server_port=int(os.environ.get("PORT", os.environ.get("GRADIO_SERVER_PORT", 7860))),
|
|
|
|
| 572 |
if __name__ == "__main__":
|
| 573 |
demo.queue(default_concurrency_limit=2, max_size=64)
|
| 574 |
demo.launch(
|
| 575 |
+
theme=brand.THEME, css=brand.CSS, js=brand.JS, head=brand.HEAD + "<style>" + brand.CSS + "</style>",
|
| 576 |
favicon_path=str(HERE / "static" / "icons" / "favicon-64.png"),
|
| 577 |
server_name=os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0"),
|
| 578 |
server_port=int(os.environ.get("PORT", os.environ.get("GRADIO_SERVER_PORT", 7860))),
|
brand.py
CHANGED
|
@@ -274,7 +274,9 @@ video, .image-frame img { border-radius: 16px; }
|
|
| 274 |
/* ---------- mobile (iPhone Safari etc.) ---------- */
|
| 275 |
@media (max-width: 640px) {
|
| 276 |
.gradio-container { padding-left: 8px !important; padding-right: 8px !important; }
|
| 277 |
-
.gradio-container > .main, .gradio-container .main > .wrap, main.contain { padding-left: 0 !important; padding-right: 0 !important; }
|
|
|
|
|
|
|
| 278 |
.aik-sub { letter-spacing: .22em; }
|
| 279 |
.aik-stats { gap: 6px; }
|
| 280 |
.aik-stat { flex: 1 1 28%; min-width: 0; }
|
|
|
|
| 274 |
/* ---------- mobile (iPhone Safari etc.) ---------- */
|
| 275 |
@media (max-width: 640px) {
|
| 276 |
.gradio-container { padding-left: 8px !important; padding-right: 8px !important; }
|
| 277 |
+
.gradio-container > .main, .gradio-container div.main.fillable, .gradio-container div.main, .gradio-container .main > .wrap, main.contain { padding-left: 0 !important; padding-right: 0 !important; }
|
| 278 |
+
.html-container { padding-left: 0 !important; padding-right: 0 !important; }
|
| 279 |
+
#aik-hero { padding-left: 2px; padding-right: 2px; }
|
| 280 |
.aik-sub { letter-spacing: .22em; }
|
| 281 |
.aik-stats { gap: 6px; }
|
| 282 |
.aik-stat { flex: 1 1 28%; min-width: 0; }
|