Update app.py
Browse files
app.py
CHANGED
|
@@ -300,8 +300,8 @@ def render_img(b64_list, idx, scale):
|
|
| 300 |
# ---------- 居中模式 ----------
|
| 301 |
return (
|
| 302 |
f'<div style="overflow:auto;border:1px solid #ccc;'
|
| 303 |
-
f'justify-content:center;align-items:center;'
|
| 304 |
-
f'width:100%;height:
|
| 305 |
f' <img src="{src}" '
|
| 306 |
f' style="width:{percent}%;max-width:none;'
|
| 307 |
f' height:auto;display:block;" />'
|
|
|
|
| 300 |
# ---------- 居中模式 ----------
|
| 301 |
return (
|
| 302 |
f'<div style="overflow:auto;border:1px solid #ccc;'
|
| 303 |
+
f'display:flex;justify-content:center;align-items:center;'
|
| 304 |
+
f'width:100%;height:auto;">'
|
| 305 |
f' <img src="{src}" '
|
| 306 |
f' style="width:{percent}%;max-width:none;'
|
| 307 |
f' height:auto;display:block;" />'
|