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 { .model-list ul {
padding-right: 20px; padding-right: 20px;
padding-inline-start: 0; padding-inline-start: 0;
margin-top: 6pt; margin-top: 3pt;
} }
.model-list li { .model-list li {

View File

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