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

Commit 75bf90c

Browse files
committed
Merge pull request #1386 from OpenBazaar/fixListingSubImages
fixes sub image display
2 parents 847dae9 + f64e9c8 commit 75bf90c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

css/obBase.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ form {
414414
height: 100%;
415415
}
416416

417+
.flexRow-grid {
418+
/* use for wrapping grids of objects with 10px margins on the right side */
419+
margin-right: -10px;
420+
width: auto;
421+
}
422+
417423
.flexRow [class |= "flexCol"] {
418424
box-sizing: border-box;
419425
position: relative;

js/templates/item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h2 class="page-contractTitle noOverflow textOpacity1 marginLeft20 marginBottom8
2424
<button class="fullscreen js-photoGallery" href="<%= ob.serverUrl %>get_image?hash=<%= ob.vendor_offer.listing.item.image_hashes[0] %><%= ob.imageExtension %>"></button>
2525
<% } %>
2626
</div>
27-
<div class="flexRow row20">
27+
<div class="flexRow row20 flexRow-grid">
2828
<% _.each(ob.vendor_offer.listing.item.image_hashes, function(data, i) {
2929
if(i != 0){%>
30-
<div class="itemImg itemImg-small overflowHidden <% if(i > 4){%>hide<% } %>">
30+
<div class="itemImg itemImg-small overflowHidden">
3131
<div class="itemImg itemImg-small <% if(!ob.showNSFWContent && !ob.skipNSFWmodal && ob.vendor_offer.listing.item.nsfw){ %> nsfw <% } %>"
3232
style="background-image: url(<%= ob.serverUrl %>get_image?hash=<%= data %><%= ob.imageExtension %>), url(imgs/defaultItem.png);">
3333
</div>

0 commit comments

Comments
 (0)