Spaces:
Running
on
Zero
Running
on
Zero
Joffrey Thomas
commited on
Commit
·
777bf12
1
Parent(s):
d114ce7
logout button placement
Browse files
app.py
CHANGED
|
@@ -483,6 +483,8 @@ body, .gradio-container, .gradio-container *{color:#111 !important}
|
|
| 483 |
.svelte-3lgy39 .wrap-inner, .wrap-inner{ color: inherit; }
|
| 484 |
#popup-overlay, #popup-overlay * {color:#f9fafb !important}
|
| 485 |
#popup-overlay #ai-analysis-box, #popup-overlay #ai-analysis-box * { color: #1e293b !important; }
|
|
|
|
|
|
|
| 486 |
"""
|
| 487 |
|
| 488 |
# Client boot JS to initialize the mini-map reliably in Gradio (scripts in HTML are sanitized)
|
|
@@ -712,7 +714,7 @@ with gr.Blocks(css=APP_CSS, title="LLM GeoGuessr") as demo:
|
|
| 712 |
""")
|
| 713 |
|
| 714 |
login_prompt_md = gr.Markdown("### Please log in with your Hugging Face account to play.", visible=True)
|
| 715 |
-
login_button = LoginButton(visible=True)
|
| 716 |
|
| 717 |
logged_in_md = gr.Markdown(visible=False)
|
| 718 |
|
|
|
|
| 483 |
.svelte-3lgy39 .wrap-inner, .wrap-inner{ color: inherit; }
|
| 484 |
#popup-overlay, #popup-overlay * {color:#f9fafb !important}
|
| 485 |
#popup-overlay #ai-analysis-box, #popup-overlay #ai-analysis-box * { color: #1e293b !important; }
|
| 486 |
+
/* Position login button in top right corner */
|
| 487 |
+
#login_button {position: fixed !important; top: 16px !important; right: 16px !important; z-index: 1000 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;}
|
| 488 |
"""
|
| 489 |
|
| 490 |
# Client boot JS to initialize the mini-map reliably in Gradio (scripts in HTML are sanitized)
|
|
|
|
| 714 |
""")
|
| 715 |
|
| 716 |
login_prompt_md = gr.Markdown("### Please log in with your Hugging Face account to play.", visible=True)
|
| 717 |
+
login_button = LoginButton(visible=True, elem_id="login_button")
|
| 718 |
|
| 719 |
logged_in_md = gr.Markdown(visible=False)
|
| 720 |
|