Update app.py
Browse files
app.py
CHANGED
|
@@ -22,9 +22,8 @@ def blob_to_base64_html(blob_data):
|
|
| 22 |
try:
|
| 23 |
if isinstance(blob_data, (bytes, bytearray)):
|
| 24 |
encoded = base64.b64encode(blob_data).decode('utf-8')
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
return f"<img src='data:image/png;base64,{encoded}' class='zoom-img' style='min-width:550px; max-width:100%; height:auto;' />"
|
| 28 |
return str(blob_data)
|
| 29 |
except Exception as e:
|
| 30 |
return str(blob_data)
|
|
@@ -680,6 +679,7 @@ td {
|
|
| 680 |
word-break: break-word !important;
|
| 681 |
line-height: 1.6;
|
| 682 |
padding: 10px;
|
|
|
|
| 683 |
}
|
| 684 |
|
| 685 |
"""
|
|
|
|
| 22 |
try:
|
| 23 |
if isinstance(blob_data, (bytes, bytearray)):
|
| 24 |
encoded = base64.b64encode(blob_data).decode('utf-8')
|
| 25 |
+
|
| 26 |
+
return f"<img src='data:image/png;base64,{encoded}' style='width: 100%; min-width: 700px; height: auto; display: block; border: 1px solid #ddd; padding: 5px; margin: 10px auto;' />"
|
|
|
|
| 27 |
return str(blob_data)
|
| 28 |
except Exception as e:
|
| 29 |
return str(blob_data)
|
|
|
|
| 679 |
word-break: break-word !important;
|
| 680 |
line-height: 1.6;
|
| 681 |
padding: 10px;
|
| 682 |
+
vertical-align: top !important;
|
| 683 |
}
|
| 684 |
|
| 685 |
"""
|