Skip to content

Commit

Permalink
render: image: make html less ugly
Browse files Browse the repository at this point in the history
  • Loading branch information
pared authored and efiop committed Dec 5, 2021
1 parent eb26b9a commit 6723a34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dvc/render/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class ImageRenderer(Renderer):
DIV = """
<div
id="{id}"
style="border: 1px solid;">
style="border:1px solid black;text-align:center;
white-space: nowrap;overflow-y:hidden;">
{partial}
</div>"""

Expand All @@ -35,7 +36,9 @@ def _write_image(
with open(img_path, "wb") as fd:
fd.write(image_data)
return """
<div>
<div
style="border:1px dotted black;margin:2px;display: inline-block;
overflow:hidden;margin-left:8px;">
<p>{title}</p>
<img src="{src}">
</div>""".format(
Expand Down

0 comments on commit 6723a34

Please sign in to comment.