Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
27dddbe
1
Parent(s):
8200edb
Hide UI elements until dark mode active to prevent FOUC
Browse filesElements are hidden with opacity:0 initially, then shown
when .dark class is applied. Shows white flash only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- app_diffusers.py +8 -0
app_diffusers.py
CHANGED
|
@@ -580,6 +580,14 @@ with gr.Blocks(
|
|
| 580 |
input_shadow_focus='0 0 0 4px rgba(0, 113, 227, 0.15)',
|
| 581 |
),
|
| 582 |
css=apple_css,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 583 |
) as demo:
|
| 584 |
# Two-column layout - variant='panel' prevents responsive stacking
|
| 585 |
with gr.Row(equal_height=False, variant="panel", elem_id="main-row"):
|
|
|
|
| 580 |
input_shadow_focus='0 0 0 4px rgba(0, 113, 227, 0.15)',
|
| 581 |
),
|
| 582 |
css=apple_css,
|
| 583 |
+
head="""<style>
|
| 584 |
+
.gradio-container .block, .gradio-container textarea, .gradio-container button, .gradio-container select, .gradio-container input, .gradio-container .input-section, .gradio-container .output-section {
|
| 585 |
+
opacity: 0 !important;
|
| 586 |
+
}
|
| 587 |
+
.dark .gradio-container .block, .dark .gradio-container textarea, .dark .gradio-container button, .dark .gradio-container select, .dark .gradio-container input, .dark .gradio-container .input-section, .dark .gradio-container .output-section {
|
| 588 |
+
opacity: 1 !important;
|
| 589 |
+
}
|
| 590 |
+
</style>""",
|
| 591 |
) as demo:
|
| 592 |
# Two-column layout - variant='panel' prevents responsive stacking
|
| 593 |
with gr.Row(equal_height=False, variant="panel", elem_id="main-row"):
|