Browse Source

feat: 更新Plotly图表设置,支持内容宽度自适应

zhch158_admin 1 month ago
parent
commit
b13e8fb408
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ocr_validator_layout.py

+ 1 - 1
ocr_validator_layout.py

@@ -473,7 +473,7 @@ class OCRLayoutManager:
                 
                 st.plotly_chart(
                     fig, 
-                    use_container_width=False,
+                    width='content',
                     config=plot_config,
                     key=f"{layout_type}_plot"
                 )