[FIX] in-drawer filter look in case of very long name

also, add help tooltip if the filter has an @help and an @string

bzr revid: xmo@openerp.com-20120521090547-99d7pom8k8dbw6z0
This commit is contained in:
Xavier Morel 2012-05-21 11:05:47 +02:00
parent 1c09d982bc
commit 4fe1d0bc50
3 changed files with 4 additions and 5 deletions

View File

@ -1342,13 +1342,12 @@
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li {
list-style: none;
padding: 3px 6px 3px 18px;
height: 14px;
line-height: 14px;
color: inherit;
cursor: pointer;
}
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li.oe_selected {
background: url(/web/static/src/img/icons/gtk-apply.png) left center no-repeat;
background: url(/web/static/src/img/icons/gtk-apply.png) left 2px no-repeat;
}
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li:hover {
background-color: #f0f0fa;

View File

@ -1095,13 +1095,12 @@ $colour4: #8a89ba
li
list-style: none
padding: 3px 6px 3px 18px
height: 14px
line-height: 14px
color: inherit
cursor: pointer
&.oe_selected
background: url(/web/static/src/img/icons/gtk-apply.png) left center no-repeat
background: url(/web/static/src/img/icons/gtk-apply.png) left 2px no-repeat
// after oe_selected so background color is not overridden
&:hover
background-color: $hover-background

View File

@ -1378,7 +1378,8 @@
<t t-esc="attrs.string"/>
</button>
<ul t-name="SearchView.filters">
<li t-foreach="widget.filters" t-as="filter">
<li t-foreach="widget.filters" t-as="filter"
t-att-title="filter.attrs.string ? filter.attrs.help : void 0">
<t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
</li>
</ul>