Update app.py
Browse files
app.py
CHANGED
@@ -68,17 +68,16 @@ if __name__ == "__main__":
|
|
68 |
"""
|
69 |
)
|
70 |
|
71 |
-
# Global Color Picker - Repositioned
|
72 |
-
with gr.Row(variant="panel"): #
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
)
|
82 |
|
83 |
# Add a small space after the color picker row before tabs
|
84 |
gr.Markdown("<br>")
|
|
|
68 |
"""
|
69 |
)
|
70 |
|
71 |
+
# Global Color Picker - Repositioned and simplified layout
|
72 |
+
with gr.Row(variant="panel", mobile_collapse=False, equal_height=True): # Ensure it doesn't collapse on mobile and maintains height
|
73 |
+
gr.Markdown("### Main Diagram Color", scale=1) # Use scale directly on Markdown
|
74 |
+
base_color_picker = gr.ColorPicker(
|
75 |
+
label="Select Base Color for Diagram",
|
76 |
+
value=DEFAULT_BASE_COLOR, # Default to your dark color
|
77 |
+
interactive=True,
|
78 |
+
elem_id="main-color-picker",
|
79 |
+
scale=2 # Allow color picker to take more space
|
80 |
+
)
|
|
|
81 |
|
82 |
# Add a small space after the color picker row before tabs
|
83 |
gr.Markdown("<br>")
|