Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 54cbb5f

Browse files
committed
Change itemShort image back to a div with background. Using an image element causes some proportion issues on some images.
1 parent 1bdb62f commit 54cbb5f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/templates/itemShort.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
<div class="gridItem clearfix custCol-border <% if(ob.hidden){ %>div-fadeExtra<% } %>">
1010

1111
<div class="itemImg row10 color-secondary custCol-secondary overflowHidden js-item" data-id="<%= ob.contract_hash %>">
12-
<div class="itemImg <% if(ob.cloak){ %> nsfw <% } %>" style="background-image: url(imgs/defaultItem.png);">
13-
<object height="230" width="250" type="image/jpg" data="<%= ob.imageURL %>" ></object>
14-
</div>
12+
<div class="itemImg <% if(ob.cloak){ %> nsfw <% } %>" style="background-image: url(<%= ob.imageURL %>), url(imgs/defaultItem.png);"></div>
1513
</div>
1614
<div class="table">
1715
<div>

0 commit comments

Comments
 (0)