From a0fbd674c96a2e09add489342eafada2afdbc190 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 5 Jun 2013 12:52:40 +0200 Subject: [FIX] search view layout in case of very long facet value * don't fix facet height so the facet content correctly "grows" all of the facet and thus the surrounding view * hard-code the heights of the view-level controls (clear and open drawer) to avoid both overly large hitbox and their moving outside of the top-right corner * add some margins on the facets container to avoid overlaps between top-level search controls and facet activable elements lp bug: https://launchpad.net/bugs/1123704 fixed bzr revid: xmo@openerp.com-20130605105240-h9o03ol7l8dti1yn --- addons/web/static/src/css/base.sass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'addons/web/static/src/css/base.sass') diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 88566b02d38..38758216a50 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -1335,13 +1335,13 @@ $sheet-padding: 16px top: 0 right: 18px width: 15px - height: 100% + height: 24px background: url(../img/search_reset.gif) center center no-repeat .oe_searchview_unfold_drawer position: absolute top: 0 right: 0 - height: 100% + height: 24px padding: 0 7px 0 4px color: #ccc cursor: pointer @@ -1374,13 +1374,12 @@ $sheet-padding: 16px .oe_searchview_facets min-height: 22px - margin-left: 15px + margin: 0 35px 0 15px * vertical-align: top display: inline-block line-height: 17px .oe_searchview_facet - height: 18px margin: 1px 0 font-size: 11px &:focus @@ -1402,7 +1401,7 @@ $sheet-padding: 16px border-color: $tag-border-selected @include box-shadow(0 0 3px 1px $tag-border-selected) .oe_facet_values - background: #f0f0fa + background: $tag-bg-light @include radius(0 3px 3px 0) .oe_facet_category, .oe_facet_value height: 18px -- cgit v1.2.3