Tweaks to the styling of the models dropdown

This commit is contained in:
cmdr2 2023-02-24 19:29:25 +05:30
parent 37b47e7f05
commit fce8b96d3b
2 changed files with 11 additions and 8 deletions

View File

@ -16,7 +16,7 @@
.model-list ul {
padding-right: 20px;
padding-inline-start: 0;
margin-top: 6pt;
margin-top: 3pt;
}
.model-list li {

View File

@ -623,13 +623,16 @@ class ModelDropdown
)
}
const containerListItem = this.createElement(
'li',
{ id: `${this.modelFilter.id}-model-result` },
['model-result'],
)
containerListItem.appendChild(this.createModelNodeList(undefined, modelTree, true))
rootList.appendChild(containerListItem)
if (modelTree.length > 0) {
const containerListItem = this.createElement(
'li',
{ id: `${this.modelFilter.id}-model-result` },
['model-result'],
)
console.log(containerListItem)
containerListItem.appendChild(this.createModelNodeList(undefined, modelTree, true))
rootList.appendChild(containerListItem)
}
return rootList
}