Update onhold.py
Browse files
onhold.py
CHANGED
|
@@ -32,14 +32,9 @@ def onhold():
|
|
| 32 |
st.write("### Display Image")
|
| 33 |
im_path = load_image(image_path, document_id, page_number)
|
| 34 |
if im_path:
|
|
|
|
| 35 |
st.image(im_path, width=200, use_column_width=False, clamp=True)
|
| 36 |
-
st.write(
|
| 37 |
-
flex: 1 1 0px;
|
| 38 |
-
overflow-x: auto;
|
| 39 |
-
overflow-y: auto;
|
| 40 |
-
max-width: 200px;
|
| 41 |
-
max-height: 400px;
|
| 42 |
-
}}</style>', unsafe_allow_html=True)
|
| 43 |
else:
|
| 44 |
st.write("Image not found")
|
| 45 |
|
|
|
|
| 32 |
st.write("### Display Image")
|
| 33 |
im_path = load_image(image_path, document_id, page_number)
|
| 34 |
if im_path:
|
| 35 |
+
st.write('<div style="overflow-x: auto; overflow-y: auto; height: 400px; width: 200px;">')
|
| 36 |
st.image(im_path, width=200, use_column_width=False, clamp=True)
|
| 37 |
+
st.write('</div>')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
else:
|
| 39 |
st.write("Image not found")
|
| 40 |
|