Skip to content

Commit

Permalink
wmlunits: Use CSS to ensure sprites still fit in the tree when overlaid
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Aug 7, 2017
1 parent 6b5ba55 commit ee66b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/unit_tree/html_output.py
Expand Up @@ -696,7 +696,7 @@ def uval(name):
write('<a href=\"%s\">' % link)

if crown == " ♚":
write('<div style="background: url(%s)">' % image)
write('<div class="spritebg" style="background-image:url(\'%s\')">' % image)
write('<img src="%s" alt="(image)" />' % crownimage)
write("</div>")
else:
Expand Down

0 comments on commit ee66b96

Please sign in to comment.