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

Commit 4ac89a6

Browse files
committed
Merge pull request #1426 from OpenBazaar/misc111
Color fixes + photo size change
2 parents 8422095 + acc8903 commit 4ac89a6

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

css/obBase.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,20 +587,21 @@ form {
587587
position: relative;
588588
background-position: center;
589589
background-size: cover;
590-
border-radius: 3px;
590+
background-repeat: no-repeat;
591+
border-radius: 2px;
591592
height: 230px;
592593
width: 250px;
593594
}
594595

595596
.itemImg.itemImg-large {
596597
/* flex row collapses unless a specific height is set */
597-
height: 380px;
598-
width: 100%;
598+
height: 472px;
599+
width: 514px;
599600
border-radius: 0;
600601
}
601602

602603
.itemImg.itemImg-small {
603-
height: 82px;
604+
height: 111px;
604605
width: 121px;
605606
margin: 0 10px 10px 0;
606607
border-radius: 1px;

js/templates/buyWizard.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="btn-corner btn-cornerTR btn-cornerTROutR btn-flushTop js-closeBuyWizardModal">
44
<h2 class="ion-android-close custCol-text clickable"></h2>
55
</div>
6-
<div class="modal-hero js-buyWizardHero shadow-inner1-light"
6+
<div class="modal-hero js-buyWizardHero custCol-text shadow-inner1-light"
77
style="background-image: url(<%= ob.serverUrl %>get_image?hash=<%= ob.vendor_offer.listing.item.image_hashes[0] %><%= ob.imageExtension %>), url(imgs/defaultBanner.png);">
88
<div class="js-buyWizardMapPlaceholder hide">
99
<div class="flexContainer">
@@ -19,28 +19,28 @@ <h2 class="ion-android-close custCol-text clickable"></h2>
1919
<div class="modal-hero modal-heroFullHeightNoButtons js-buyWizardSpinner hide background1 custCol-primary">
2020
<div class="width100 txt-center vCentered">
2121
<div class="txt-col1 ion-android-sync spinner spinner-slow icon-gigantic icon-circle-background1 rowTop50 row20"></div>
22-
<h3 class="txt-bright padding30"><%= polyglot.t('CheckExchanges') %> </h3>
22+
<h3 class="custCol-text padding30"><%= polyglot.t('CheckExchanges') %> </h3>
2323
</div>
2424
</div>
2525
<div class="modal-hero modal-heroFullHeightNoButtons padding40 js-buyWizardPay hide background1 custCol-primary">
2626
<div class="width100 row20">
2727
<img class="blockCenter qrCode js-buyWizardPayQRCode" height="250" width="250" src="imgs/defaultItem.png"/>
2828
</div>
2929
<div class="txt-bright pad20">
30-
<div class="txt-center row10 textSize20px">
30+
<div class="txt-center row10 textSize20px custCol-text">
3131
<%= polyglot.t('buyFlow.SendBTCtoAddress', {amount: '<span class="js-buyWizardDetailsTotalBTC"></span>'}) %>
3232
</div>
3333
<div class="txt-center row10">
34-
<a class="textSize16px js-buyWizardPayLink"><span class="js-buyWizardPayURL"></span></a>
34+
<a class="textSize16px js-buyWizardPayLink custCol-text"><span class="js-buyWizardPayURL"></span></a>
3535
</div>
3636
<div class="txt-center row10">
3737
<input type="checkbox" class="textSize11px fieldItem thin" id="BuyWizardQRDetailsInput">
38-
<label for="BuyWizardQRDetailsInput" class="textSize11px"> <%= polyglot.t('AdditionalPaymentDataInfo') %></label>
38+
<label for="BuyWizardQRDetailsInput" class="textSize11px custCol-text"> <%= polyglot.t('AdditionalPaymentDataInfo') %></label>
3939
</div>
40-
<a class="btn btn-txt btn-wide row10 js-buyWizardPayCopy custCol-secondary"><i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %></a>
41-
<a class="btn btn-txt btn-wide row10 js-buyWizardPayLink custCol-secondary"><i class="ion-link"></i> <%= polyglot.t('buyFlow.OpenAddress') %></a>
42-
<a class="btn btn-txt btn-wide js-buyWizardPayCheck custCol-secondary"><i class="ion-refresh"></i> <%= polyglot.t('buyFlow.RefreshPayment') %></a>
43-
<div class="rowTop10 txt-center note">
40+
<a class="btn btn-txt btn-wide row10 js-buyWizardPayCopy custCol-secondary custCol-text"><i class="ion-clipboard"></i> <%= polyglot.t('buyFlow.CopyAddress') %></a>
41+
<a class="btn btn-txt btn-wide row10 js-buyWizardPayLink custCol-secondary custCol-text"><i class="ion-link"></i> <%= polyglot.t('buyFlow.OpenAddress') %></a>
42+
<a class="btn btn-txt btn-wide js-buyWizardPayCheck custCol-secondary custCol-text"><i class="ion-refresh"></i> <%= polyglot.t('buyFlow.RefreshPayment') %></a>
43+
<div class="rowTop10 txt-center note custCol-text">
4444
<%= polyglot.t('buyFlow.paymentNote') %>
4545
</div>
4646
</div>

js/templates/item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ <h4><%= polyglot.t('CanBeShippedTo') %></h4>
166166
<%= polyglot.t('ShippingReturns') %>
167167
</a>
168168
</div>
169-
<div class="flexContainer flex-border custCol-primary js-description js-tabTarg textOpacity75 minHeight300 <% ob.activeTab !== 'description' && print('hide') %>">
169+
<div class="flexContainer flex-border custCol-primary js-description js-tabTarg textOpacity1 minHeight300 <% ob.activeTab !== 'description' && print('hide') %>">
170170
<div class="flexRow">
171-
<div class="rowItem fontSize16 padding30 paddingTop10 lineHeight24 fontWeight400 flexContainer editableContent">
171+
<div class="rowItem fontSize16 padding30 paddingTop20 lineHeight24 fontWeight400 flexContainer editableContent">
172172
<%= ob.vendor_offer.listing.item.displayDescription %>
173173
</div>
174174
</div>

js/views/itemEditVw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ module.exports = baseVw.extend({
330330
var self = this,
331331
$imageInput = this.$el.find('.js-itemImageUpload'),
332332
curImages = this.model.get('combinedImagesArray'),
333-
maxH = 800,
334-
maxW = 800,
333+
maxH = 944,
334+
maxW = 1028,
335335
imageList = [],
336336
loaded = 0,
337337
imageCount;
@@ -382,7 +382,7 @@ module.exports = baseVw.extend({
382382
canvas.height = imgH;
383383
ctx = canvas.getContext('2d');
384384
ctx.drawImage(newImage, 0, 0, imgW, imgH);
385-
dataURI = canvas.toDataURL('image/jpeg', 0.45);
385+
dataURI = canvas.toDataURL('image/jpeg', 0.7);
386386
dataURI = dataURI.replace(/^data:image\/(png|jpeg);base64,/, "");
387387
imageList.push(dataURI);
388388

0 commit comments

Comments
 (0)