Browse Source

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

refactoring
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

@@ -54,8 +54,8 @@ var app = new Vue({
},
dayContent: function (object) {
var style = {
fontSize: '1.5rem',
padding: '20px',
fontSize: '1.4rem',
padding: app.isMobile() ? '18px' : '20px',
};
return style;
},
@@ -284,6 +284,11 @@ var app = new Vue({
});
},

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

responsive: function() {
var app = this;
app.responsiveApply();
@@ -293,9 +298,8 @@ var app = new Vue({
},

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

Loading…
Cancel
Save