QIDNLF commited on
Commit
9c229ce
·
verified ·
1 Parent(s): 52e2865

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # 💡 class를 부여하고 스타일은 최소화합니다.
26
- # min-width 주면 비율에 상관없이 일정 크기 이상을 유지합니다.
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
  """