Browse Source

[Responsive] Calendrier : décallage lettres / chiffres #180

prodstable
Guillaume 2 years ago
parent
commit
b23dc2a414
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      producer/web/js/vuejs/order-order.js

+ 8
- 4
producer/web/js/vuejs/order-order.js View File

}, },
dayContent: function (object) { dayContent: function (object) {
var style = { var style = {
fontSize: '1.5rem',
padding: '20px',
fontSize: '1.4rem',
padding: app.isMobile() ? '18px' : '20px',
}; };
return style; return style;
}, },
}); });
}, },


isMobile: function() {
var width_window = parseInt($(window).width());
return width_window <= 768;
},

responsive: function() { responsive: function() {
var app = this; var app = this;
app.responsiveApply(); app.responsiveApply();
}, },


responsiveApply: function() { responsiveApply: function() {
var width_window = parseInt($(window).width());
var $td_summary = $('#products tr.total td.summary'); var $td_summary = $('#products tr.total td.summary');
if(width_window <= 768) {
if(this.isMobile()) {
$td_summary.attr('colspan', 3); $td_summary.attr('colspan', 3);
} }
else { else {

Loading…
Cancel
Save