Justxd22 commited on
Commit
12d3f0c
·
1 Parent(s): dd8e8ec

fix height

Browse files
Files changed (1) hide show
  1. app.py +39 -7
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
- .gradio-container { padding: 0 !important; max-width: 100% !important; display: flex; flex-direction: column; }
455
- #game-frame-container { flex-grow: 1; height: 100% !important; border: none; overflow: hidden; padding: 0; }
456
- #game-frame-container > .html-container { height: 100% !important; display: flex; flex-direction: column; }
457
- #game-frame-container .prose { flex-grow: 1; height: 100% !important; max-width: 100% !important; }
458
- footer { display: none !important; }
459
- /* Allow scrolling for logs */
460
- .gradio-container { overflow-y: auto !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: