Fixed: mobile viewport was too large when presenting ads, making for a sloppy mobile experience. Restricted length of "Advertisement" label to fix it.
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user