mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Restore whitespace in search Collection condition menu (#4990)
This commit is contained in:
parent
9f83790ed6
commit
e11d93f0bc
2 changed files with 11 additions and 6 deletions
|
|
@ -441,7 +441,7 @@
|
|||
indent += '- ';
|
||||
}
|
||||
rows.push({
|
||||
name: indent + col.name,
|
||||
name: indent + Zotero.Utilities.trimInternal(col.name),
|
||||
value: 'C' + col.key,
|
||||
image: Zotero.Collection.prototype.treeViewImage
|
||||
});
|
||||
|
|
@ -560,7 +560,7 @@
|
|||
createValueMenu(rows) {
|
||||
let valueMenu = this.querySelector('#valuemenu');
|
||||
|
||||
while (valueMenu.hasChildNodes()){
|
||||
while (valueMenu.hasChildNodes()) {
|
||||
valueMenu.removeChild(valueMenu.firstChild);
|
||||
}
|
||||
|
||||
|
|
@ -573,12 +573,9 @@
|
|||
}
|
||||
valueMenu.selectedIndex = 0;
|
||||
|
||||
if (this.value)
|
||||
{
|
||||
if (this.value) {
|
||||
valueMenu.value = this.value;
|
||||
}
|
||||
|
||||
valueMenu.shadowRoot.querySelector('#label-box > image').style.maxHeight = '16px';
|
||||
}
|
||||
|
||||
initWithParentAndCondition(parent, condition) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,14 @@ zoterosearch {
|
|||
#operatorsmenu, #valuemenu, #valuefield, .search-in-the-last {
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
#valuemenu::part(icon) {
|
||||
max-height: 16px;
|
||||
}
|
||||
|
||||
#valuemenu::part(label), #valuemenu menuitem > .menu-iconic-text {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
#condition-tooltips tooltip
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue