Better Icon placement in AI load menu

This commit is contained in:
ebolam 2022-08-13 09:51:20 -04:00
parent ca2c60d423
commit 85d925aead
1 changed files with 3 additions and 2 deletions

View File

@ -1074,11 +1074,12 @@ function buildLoadModelList(ar, menu, breadcrumbs, showdelete) {
html = "<div class=\"flex\">\
<div class=\"loadlistpadding\"></div>"
//if the menu item is a link to another menu
if(ar[i][3]) {
console.log(ar[i]);
if((ar[i][3]) || (['Load a model from its directory', 'Load an old GPT-2 model (eg CloverEdition)'].includes(ar[i][0]))) {
html = html + "<span class=\"loadlisticon loadmodellisticon-folder oi oi-folder allowed\" aria-hidden=\"true\"></span>"
} else {
//this is a model
html = html + "<div class=\"loadlisticon oi oi-caret-right allowed\"></div>"
html = html + "<div class=\"loadlisticon oi oi-caret-right allowed\"></div>&nbsp;&nbsp;&nbsp;"
}
//now let's do the delete icon if applicable