@@ -463,7 +463,7 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
463463 run_button = st .button (
464464 "🚀 Run Supercell Size Analysis" ,
465465 type = "primary" ,
466- use_container_width = True ,
466+ width = 'stretch' ,
467467 disabled = not can_run
468468 )
469469
@@ -497,7 +497,7 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
497497 'Composition' : conc_str })
498498 if conc_data :
499499 conc_df = pd .DataFrame (conc_data )
500- st .dataframe (conc_df , use_container_width = True , hide_index = True )
500+ st .dataframe (conc_df , width = 'stretch' , hide_index = True )
501501 # st.caption(
502502 # "💡 Concentrations are recalculated for each supercell size to match target as closely as possible with integer atom counts.")
503503 with st .expander ("📊 Detailed Results Table" , expanded = False ):
@@ -513,7 +513,7 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
513513 })
514514
515515 results_df = pd .DataFrame (table_data )
516- st .dataframe (results_df , use_container_width = True , hide_index = True )
516+ st .dataframe (results_df , width = 'stretch' , hide_index = True )
517517 st .caption (
518518 "💡 Mean Score: Average randomness quality | Std Dev: Statistical fluctuation | Lower RMSE = Better randomness" )
519519
@@ -536,7 +536,7 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
536536
537537 fig = create_size_analysis_plots (results , selected_sublattice = selected_sublattice )
538538 if fig :
539- st .plotly_chart (fig , use_container_width = True )
539+ st .plotly_chart (fig , width = 'stretch' )
540540
541541 st .markdown ("---" )
542542 st .subheader ("📥 Download All Structures" )
@@ -558,7 +558,7 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
558558 """ )
559559
560560 with col_btn :
561- if st .button ("🔽 Generate Download Package" , type = "primary" , use_container_width = True ):
561+ if st .button ("🔽 Generate Download Package" , type = "primary" , width = 'stretch' ):
562562 with st .spinner ("Creating ZIP file..." ):
563563 zip_data = create_structures_zip (results )
564564 st .session_state ['structures_zip' ] = zip_data
@@ -570,6 +570,6 @@ def render_supercell_size_analysis(working_structure, target_concentrations, tra
570570 data = st .session_state ['structures_zip' ],
571571 file_name = "supercell_size_analysis_structures.zip" ,
572572 mime = "application/zip" ,
573- use_container_width = True ,
573+ width = 'stretch' ,
574574 type = 'primary'
575575 )
0 commit comments