删除冗余逻辑

This commit is contained in:
puke
2025-10-28 14:40:40 +08:00
committed by puke
parent 29588370ee
commit 2c3b2ab19c

View File

@@ -679,14 +679,9 @@ def main():
# Display preview # Display preview
if preview_path: if preview_path:
st.success(tr("template.preview_success")) st.success(tr("template.preview_success"))
# Calculate display width (max 500px or 1/3 of original)
display_width = min(500, preview_width // 3)
st.image( st.image(
preview_path, preview_path,
caption=tr("template.preview_caption", template=frame_template), caption=tr("template.preview_caption", template=frame_template),
# width=display_width
) )
# Show file path # Show file path