galb-dai commited on
Commit
afb90fb
·
1 Parent(s): 2fce3fc
Files changed (2) hide show
  1. app.py +1 -3
  2. src/display/css_html_js.py +2 -0
app.py CHANGED
@@ -353,9 +353,7 @@ with blocks:
353
  with gr.Row():
354
  gr.Markdown("# ✉️✨ Submit your solutions", elem_classes="markdown-text")
355
 
356
- with gr.Row():
357
-
358
- login_box = gr.Group(visible=True)
359
  with login_box:
360
  gr.Markdown("Please sign in with Hugging Face to submit")
361
  gr.LoginButton(elem_id="hf-login-btn")
 
353
  with gr.Row():
354
  gr.Markdown("# ✉️✨ Submit your solutions", elem_classes="markdown-text")
355
 
356
+ login_box = gr.Group(visible=True, elem_id="f1-login-box")
 
 
357
  with login_box:
358
  gr.Markdown("Please sign in with Hugging Face to submit")
359
  gr.LoginButton(elem_id="hf-login-btn")
src/display/css_html_js.py CHANGED
@@ -75,6 +75,8 @@ custom_css = """
75
  .f1-grid-cell:nth-child(3n+1) { border-left: none; }
76
  .f1-grid-head .f1-grid-cell { font-weight: 600; text-align: center; border-top: none; }
77
 
 
 
78
  /* Leaderboard: cap width at 800px and center; keep your chain rule */
79
  #formulaone-leaderboard-tab-table { max-width: 800px; margin-left: auto; margin-right: auto; }
80
  #formulaone-leaderboard-tab-table .column .row .column { min-width: 80% !important; }
 
75
  .f1-grid-cell:nth-child(3n+1) { border-left: none; }
76
  .f1-grid-head .f1-grid-cell { font-weight: 600; text-align: center; border-top: none; }
77
 
78
+ #f1-login-box { width: 800px; }
79
+
80
  /* Leaderboard: cap width at 800px and center; keep your chain rule */
81
  #formulaone-leaderboard-tab-table { max-width: 800px; margin-left: auto; margin-right: auto; }
82
  #formulaone-leaderboard-tab-table .column .row .column { min-width: 80% !important; }