diff --git a/assets/javascripts/discourse/components/amazon-product-links.js.es6 b/assets/javascripts/discourse/components/amazon-product-links.js.es6 index 240cb76..9bcdc85 100644 --- a/assets/javascripts/discourse/components/amazon-product-links.js.es6 +++ b/assets/javascripts/discourse/components/amazon-product-links.js.es6 @@ -101,6 +101,10 @@ export default Ember.Component.extend({ return `width: ${this.get('mobile_amazon_width')}px; height: ${this.get('mobile_amazon_height')}px;`.htmlSafe(); }.property('mobile_amazon_width', 'mobile_amazon_height'), + adTitleStyleMobile: function() { + return `width: ${this.get('mobile_amazon_width')}px;`.htmlSafe(); + }.property('mobile_amazon_width'), + userInput: function() { return `${this.get('user_input')}`.htmlSafe(); }.property('user_input'), diff --git a/assets/javascripts/discourse/components/google-adsense.js.es6 b/assets/javascripts/discourse/components/google-adsense.js.es6 index 585d3da..be52cae 100644 --- a/assets/javascripts/discourse/components/google-adsense.js.es6 +++ b/assets/javascripts/discourse/components/google-adsense.js.es6 @@ -120,6 +120,10 @@ export default Ember.Component.extend({ return `width: ${this.get('ad_mobile_width')}px; height: ${this.get('ad_mobile_height')}px; margin:0 auto;`.htmlSafe(); }.property('ad_mobile_width', 'ad_mobile_height'), + adTitleStyleMobile: function() { + return `width: ${this.get('ad_mobile_width')}px;`.htmlSafe(); + }.property('ad_mobile_width'), + adInsStyleMobile: function() { return `display: inline-block; ${this.get('adWrapperStyleMobile')}`.htmlSafe(); }.property('adWrapperStyleMobile'), diff --git a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 index b8a6f1c..f10b3fb 100755 --- a/assets/javascripts/discourse/components/google-dfp-ad.js.es6 +++ b/assets/javascripts/discourse/components/google-dfp-ad.js.es6 @@ -187,6 +187,10 @@ export default Ember.Component.extend({ return `width: ${this.get('const_mobile_width')}px; height: ${this.get('const_mobile_height')}px;`.htmlSafe(); }.property('const_mobile_width', 'const_mobile_height'), + adTitleStyleMobile: function() { + return `width: ${this.get('const_mobile_width')}px;`.htmlSafe(); + }.property('const_mobile_width'), + checkTrustLevels: function() { return !((currentUser) && (currentUser.get('trust_level') > Discourse.SiteSettings.dfp_through_trust_level)); }.property('trust_level'), diff --git a/assets/javascripts/discourse/templates/components/amazon-product-links.hbs b/assets/javascripts/discourse/templates/components/amazon-product-links.hbs index bb1f41b..5dafa0a 100644 --- a/assets/javascripts/discourse/templates/components/amazon-product-links.hbs +++ b/assets/javascripts/discourse/templates/components/amazon-product-links.hbs @@ -1,9 +1,10 @@ {{#if checkTrustLevels}} -