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
) )
} }
if (modelTree.length > 0) {
const containerListItem = this.createElement( const containerListItem = this.createElement(
'li', 'li',
{ id: `${this.modelFilter.id}-model-result` }, { id: `${this.modelFilter.id}-model-result` },
['model-result'], ['model-result'],
) )
console.log(containerListItem)
containerListItem.appendChild(this.createModelNodeList(undefined, modelTree, true)) containerListItem.appendChild(this.createModelNodeList(undefined, modelTree, true))
rootList.appendChild(containerListItem) rootList.appendChild(containerListItem)
}
return rootList return rootList
} }