summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-03-05 09:54:40 +0100
committerAaron Bohy <aab@odoo.com>2018-03-05 13:15:08 +0100
commit24904d406c94266e037728be7bc405797bc2a721 (patch)
tree2700864ec1442a9c1daf0d03b103c7a003e5b503 /addons/web/static/src/less
parenta86200597ff3e0a8fbbf3b9272f7a3b80b1f5bfe (diff)
[FIX] web: Calendar: control panel buttons in mobile
In mobile, we want a special 'Today' button to be displayed on the bottom right corner of the control panel. Rev. ebe58d92 enforces this by defining less layout rules on the control panel. However, those rules apply globally, for all control panels, not only in Calendar views. So it produces undesired behaviors in other views. This rev. removes the undesired less rules, and instead appends the 'Today' button in the pager area, which is in the bottom right corner.
Diffstat (limited to 'addons/web/static/src/less')
-rw-r--r--addons/web/static/src/less/web_calendar.less14
1 files changed, 4 insertions, 10 deletions
diff --git a/addons/web/static/src/less/web_calendar.less b/addons/web/static/src/less/web_calendar.less
index 05c9a5d6b4a..a3ead61f011 100644
--- a/addons/web/static/src/less/web_calendar.less
+++ b/addons/web/static/src/less/web_calendar.less
@@ -220,16 +220,10 @@
}
@media (max-width: @screen-xs-max) {
.o_control_panel {
- .o_cp_left {
- width: 100%;
- .o_cp_buttons {
- width: 100%;
- .o_calendar_button_today {
- float: right;
- > .o_calendar_text {
- margin-top: 3px;
- }
- }
+ .o_calendar_button_today {
+ float: right;
+ > .o_calendar_text {
+ margin-top: 3px;
}
}
}