summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorSuraj Shukla <suh@odoo.com>2019-01-10 10:14:01 +0000
committerMartin Geubelle <mge@odoo.com>2019-04-09 12:44:01 +0000
commitdc2a93792aa1fdf6f62ed6d30060fa9f56011abb (patch)
tree2902bd6eac1585b41d07e527d793e68783835846 /addons/web/static/src
parent13222fcd685472d038503a1a35386eba686b13be (diff)
[IMP] web: properly set margin for the kanban dropdown
While everything looks pretty perfect without this commit, setting margin on `.dropdown-toggle` and not on its parent `.o_dropdown_kanban` itself will cause glitches in Studio. While selecting the dropdown using Studio, the class responsible for displaying outline (that indicates the selection) is applied on '.o_dropdown_kanban', which is okay, but the actual child is positioned using margin, so the outline on parent div looks ugly. This commit fixes the issue by applying the margin on the proper selector. Task 1916583 closes odoo/odoo#30049 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/scss/kanban_view.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/scss/kanban_view.scss b/addons/web/static/src/scss/kanban_view.scss
index c1b05807ddf..2cb209e466e 100644
--- a/addons/web/static/src/scss/kanban_view.scss
+++ b/addons/web/static/src/scss/kanban_view.scss
@@ -196,13 +196,13 @@
.o_dropdown_kanban {
@include o-position-absolute($o-kanban-inside-vgutter, $o-kanban-inside-hgutter);
visibility: hidden;
+ margin: (-$o-kanban-inside-vgutter) (-$o-kanban-inside-hgutter) 0 0;
@include media-breakpoint-down(sm) {
visibility: visible;
}
.dropdown-toggle {
@include o-kanban-dropdown;
- margin: (-$o-kanban-inside-vgutter - 1px) (-$o-kanban-inside-hgutter - 1px) 0 0;
}
&.show .dropdown-toggle {
@include o-kanban-dropdown-open;