Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -298,7 +298,7 @@ def render_img(b64_list, idx, scale):
|
|
| 298 |
|
| 299 |
return (
|
| 300 |
f'<div style="overflow:auto;border:1px solid #ccc;'
|
| 301 |
-
f'
|
| 302 |
f'width:100%;height:800px;">'
|
| 303 |
f' <img src="{src}" '
|
| 304 |
f' style="width:{percent}%;max-width:none;'
|
|
|
|
| 298 |
|
| 299 |
return (
|
| 300 |
f'<div style="overflow:auto;border:1px solid #ccc;'
|
| 301 |
+
f'justify-content:center;align-items:center;' # ① 横纵向居中
|
| 302 |
f'width:100%;height:800px;">'
|
| 303 |
f' <img src="{src}" '
|
| 304 |
f' style="width:{percent}%;max-width:none;'
|