Restore whitespace in search Collection condition menu (#4990)

This commit is contained in:
Abe Jellinek 2025-01-16 23:13:06 -05:00 • committed by GitHub
parent 9f83790ed6
commit e11d93f0bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 6 deletions

View file

@ -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) {

View file

@ -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
{