Spaces:
Running
Running
fix height
Browse files
app.py
CHANGED
|
@@ -451,13 +451,45 @@ def start_game_from_ui(case_name, mode, voice):
|
|
| 451 |
|
| 452 |
css = """
|
| 453 |
#bridge-input, #bridge-output, #log-input { display: none !important; }
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 461 |
"""
|
| 462 |
|
| 463 |
with gr.Blocks(title="Murder.Ai") as demo:
|
|
|
|
| 451 |
|
| 452 |
css = """
|
| 453 |
#bridge-input, #bridge-output, #log-input { display: none !important; }
|
| 454 |
+
|
| 455 |
+
/* Remove viewport-based height constraints */
|
| 456 |
+
.gradio-container {
|
| 457 |
+
padding: 0 !important;
|
| 458 |
+
max-width: 100% !important;
|
| 459 |
+
display: flex;
|
| 460 |
+
flex-direction: column;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
/* Fixed height for game container */
|
| 464 |
+
#game-frame-container {
|
| 465 |
+
height: 70vh !important;
|
| 466 |
+
min-height: 500px;
|
| 467 |
+
max-height: 800px;
|
| 468 |
+
border: none;
|
| 469 |
+
overflow: hidden;
|
| 470 |
+
padding: 0;
|
| 471 |
+
margin-bottom: 2rem;
|
| 472 |
+
}
|
| 473 |
+
|
| 474 |
+
#game-frame-container > .html-container {
|
| 475 |
+
height: 100% !important;
|
| 476 |
+
display: flex;
|
| 477 |
+
flex-direction: column;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
#game-frame-container .prose {
|
| 481 |
+
height: 100% !important;
|
| 482 |
+
max-width: 100% !important;
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
/* Setup screen styling */
|
| 486 |
+
#setup-container {
|
| 487 |
+
max-width: 800px;
|
| 488 |
+
margin: 2rem auto;
|
| 489 |
+
padding: 2rem;
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
footer { display: none !important; }
|
| 493 |
"""
|
| 494 |
|
| 495 |
with gr.Blocks(title="Murder.Ai") as demo:
|