Skip to content

Commit 309fca2

Browse files
committed
unify the image and video displaying scheme
1 parent 0842851 commit 309fca2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/compare.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def main():
130130
if dirpath != "" and os.path.isdir(dirpath):
131131
matched_file = match_file(dirpath, file_name)
132132
if matched_file.endswith(IMAGE_EXTENSIONS):
133-
st.image(
134-
os.path.join(dirpath, matched_file), caption=display_name, use_container_width=True
135-
)
133+
with st.container():
134+
st.image(os.path.join(dirpath, matched_file), use_container_width=True)
135+
st.markdown(display_name)
136136
else:
137137
with st.container():
138138
st.video(

0 commit comments

Comments
 (0)