删除冗余逻辑

This commit is contained in:
puke authored and puke committed 2025-11-07 16:59:12 +08:00
1 parent 29588370ee
commit 2c3b2ab19c
1 file changed
-5
-5
View File
@@ -679,14 +679,9 @@ def main():
# Display preview
if preview_path:
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(
preview_path,
caption=tr("template.preview_caption", template=frame_template),
# width=display_width
)
# Show file path