ZahirJS commited on
Commit
e7fa4b7
·
verified ·
1 Parent(s): 90ffc09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -68,17 +68,16 @@ if __name__ == "__main__":
68
  """
69
  )
70
 
71
- # Global Color Picker - Repositioned
72
- with gr.Row(variant="panel"): # Using variant="panel" for better visual grouping
73
- with gr.Column(scale=1):
74
- gr.Markdown("### Main Diagram Color")
75
- with gr.Column(scale=2):
76
- base_color_picker = gr.ColorPicker(
77
- label="Select Base Color for Diagram",
78
- value=DEFAULT_BASE_COLOR, # Default to your dark color
79
- interactive=True,
80
- elem_id="main-color-picker"
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>")