diff --git a/addons/web/static/src/views/fields/properties/properties_field.scss b/addons/web/static/src/views/fields/properties/properties_field.scss index 8aac4be76a5..af7f9562baa 100644 --- a/addons/web/static/src/views/fields/properties/properties_field.scss +++ b/addons/web/static/src/views/fields/properties/properties_field.scss @@ -91,16 +91,14 @@ z-index: $zindex-popover !important; font-size: inherit; box-sizing: border-box; -} -.o_xxs_form_view .o_field_properties { - // mobile view - .o_field_property_add, - .o_field_property_open_popover { - display: none; - } - .o_field_property_open_popover.disabled { - pointer-events: none; + // fullscreen on small screen sizes + @include media-breakpoint-down(md) { + top: 0px !important; + left: 0px !important; + right: 0px; + bottom: 0px; + margin-top: 0px !important; } } @@ -115,6 +113,14 @@ .oi-draggable { cursor: url(/web/static/img/openhand.cur), grab; } + @include media-breakpoint-down(sm) { + .o_field_property_open_popover { + opacity: 1; + &.disabled { + pointer-events: none; + } + } + } } .o_property_dragging { diff --git a/addons/web/static/src/views/fields/properties/properties_field.xml b/addons/web/static/src/views/fields/properties/properties_field.xml index 911b973edf8..fa116f58068 100644 --- a/addons/web/static/src/views/fields/properties/properties_field.xml +++ b/addons/web/static/src/views/fields/properties/properties_field.xml @@ -21,7 +21,7 @@ class="o_field_property_open_popover fa fa-pencil ms-3" t-on-click.prevent.stop="(event) => this.onPropertyEdit(event, propertiesListGroup.name)"/> + class="oi oi-draggable ms-1 d-none d-sm-block"/>