Better Icon placement in AI load menu
This commit is contained in:
parent
ca2c60d423
commit
85d925aead
|
@ -1074,11 +1074,12 @@ function buildLoadModelList(ar, menu, breadcrumbs, showdelete) {
|
||||||
html = "<div class=\"flex\">\
|
html = "<div class=\"flex\">\
|
||||||
<div class=\"loadlistpadding\"></div>"
|
<div class=\"loadlistpadding\"></div>"
|
||||||
//if the menu item is a link to another menu
|
//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>"
|
html = html + "<span class=\"loadlisticon loadmodellisticon-folder oi oi-folder allowed\" aria-hidden=\"true\"></span>"
|
||||||
} else {
|
} else {
|
||||||
//this is a model
|
//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> "
|
||||||
}
|
}
|
||||||
|
|
||||||
//now let's do the delete icon if applicable
|
//now let's do the delete icon if applicable
|
||||||
|
|
Loading…
Reference in New Issue