GuglielmoTor commited on
Commit
9dbda83
·
verified ·
1 Parent(s): 25a7600

Update ui_generators.py

Browse files
Files changed (1) hide show
  1. ui_generators.py +3 -2
ui_generators.py CHANGED
@@ -343,7 +343,8 @@ def create_analytics_plot_panel(plot_label_str, plot_id_str):
343
 
344
  with gr.Column(visible=True) as panel_component: # Main container for this plot
345
  with gr.Row(variant="compact"): # Removed vertical_align="center"
346
- gr.Markdown(f"#### {plot_label_str}", scale=3) # Plot title, give it more space
 
347
  with gr.Row(elem_classes="plot-actions", scale=1, min_width=120): # Action buttons container, adjust scale/min_width as needed
348
  bomb_button = gr.Button(value=BOMB_ICON, variant="secondary", size="sm", min_width=30, elem_id=f"bomb_btn_{plot_id_str}")
349
  formula_button = gr.Button(value=FORMULA_ICON, variant="secondary", size="sm", min_width=30, elem_id=f"formula_btn_{plot_id_str}")
@@ -430,4 +431,4 @@ def build_analytics_tab_plot_area(plot_configs):
430
  if len(plot_ui_objects) != len(plot_configs):
431
  logging.error(f"MISMATCH: Expected {len(plot_configs)} plot objects, but created {len(plot_ui_objects)}.")
432
 
433
- return plot_ui_objects, section_titles_map
 
343
 
344
  with gr.Column(visible=True) as panel_component: # Main container for this plot
345
  with gr.Row(variant="compact"): # Removed vertical_align="center"
346
+ # Removed scale=3 from gr.Markdown as it's not a valid argument
347
+ gr.Markdown(f"#### {plot_label_str}") # Plot title
348
  with gr.Row(elem_classes="plot-actions", scale=1, min_width=120): # Action buttons container, adjust scale/min_width as needed
349
  bomb_button = gr.Button(value=BOMB_ICON, variant="secondary", size="sm", min_width=30, elem_id=f"bomb_btn_{plot_id_str}")
350
  formula_button = gr.Button(value=FORMULA_ICON, variant="secondary", size="sm", min_width=30, elem_id=f"formula_btn_{plot_id_str}")
 
431
  if len(plot_ui_objects) != len(plot_configs):
432
  logging.error(f"MISMATCH: Expected {len(plot_configs)} plot objects, but created {len(plot_ui_objects)}.")
433
 
434
+ return plot_ui_objects, section_titles_map