GiantPandas commited on
Commit
a711297
·
verified ·
1 Parent(s): 32d6c95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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:800px;">'
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;" />'