Sfoglia il codice sorgente

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

refactoring
Guillaume 2 anni fa
parent
commit
b23dc2a414
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. +8
    -4
      producer/web/js/vuejs/order-order.js

+ 8
- 4
producer/web/js/vuejs/order-order.js Vedi 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…
Annulla
Salva