[FIX] web: wrong display in mobile

This commit is contained in:
Christophe Matthieu
2017-04-18 10:19:06 +02:00
parent 22ab5036d6
commit e6897c71d5
3 changed files with 14 additions and 5 deletions
@@ -354,15 +354,15 @@ return AbstractModel.extend({
navLinks: false,
eventLimit: this.eventLimit, // allow "more" link when too many events
snapMinutes: 15,
longPressDelay: 500,
eventResizableFromStart: true,
weekNumberCalculation: function (date) {
return moment(date).week();
},
weekNumbers: true,
weekNumberTitle: _t("W"),
allDayText: _t("All day"),
views: {
week: {
columnFormat: 'ddd ' + time.strftime_to_moment_format(_t.database.parameters.date_format),
titleFormat: time.strftime_to_moment_format(_t.database.parameters.time_format),
}
},
monthNames: moment.months(),
@@ -324,7 +324,7 @@ return AbstractRenderer.extend({
}
element.find('.fc-content .fc-time').text(display_hour);
},
height: 'auto',
unselectAuto: false,
});
+10 -1
View File
@@ -39,9 +39,9 @@
.o_calendar_view {
.o-flex(1, 1, auto);
min-width: 0;
height: 100%;
.o_calendar_widget {
height: 100%;
background-color: @odoo-view-background-color;
* {
z-index: 0; // FIXME
@@ -69,6 +69,9 @@
}
.fc-view {
overflow-x: auto;
> table {
min-width: 600px;
}
}
}
@@ -202,6 +205,12 @@
}
}
@media only screen and (max-width: 768px) {
.o_calendar_container {
padding: 0;
}
}
.modal {
.o_attendee_head {
width: 32px;