|
|
@@ -210,7 +210,7 @@ def _display_differences_dataframe(comparison_result: dict):
|
|
|
subset=['严重程度']
|
|
|
).format({'序号': '{:d}'})
|
|
|
|
|
|
- st.dataframe(styled_df, use_container_width=True, height=400, hide_index=True)
|
|
|
+ st.dataframe(styled_df, width='stretch', height=400, hide_index=True)
|
|
|
|
|
|
|
|
|
def _display_difference_details(comparison_result: dict):
|
|
|
@@ -268,7 +268,7 @@ def _display_difference_charts(comparison_result: dict):
|
|
|
names=list(type_counts.keys()),
|
|
|
title="差异类型分布"
|
|
|
)
|
|
|
- st.plotly_chart(fig_type, use_container_width=True)
|
|
|
+ st.plotly_chart(fig_type, width='stretch')
|
|
|
|
|
|
with col2:
|
|
|
fig_severity = px.bar(
|
|
|
@@ -278,7 +278,7 @@ def _display_difference_charts(comparison_result: dict):
|
|
|
color=list(severity_counts.keys()),
|
|
|
color_discrete_map={'高': '#f44336', '中': '#ff9800', '低': '#4caf50'}
|
|
|
)
|
|
|
- st.plotly_chart(fig_severity, use_container_width=True)
|
|
|
+ st.plotly_chart(fig_severity, width='stretch')
|
|
|
|
|
|
|
|
|
def _provide_download_options(comparison_result: dict):
|