Move the remove button to the left side of the lora, to increase the space for the model name

This commit is contained in:
cmdr2 2023-07-16 15:46:24 +05:30
parent 5bd98d4aa0
commit 14c1d17632
2 changed files with 13 additions and 1 deletions

View File

@ -1684,7 +1684,17 @@ body.wait-pause {
}
.model_entry .model_name {
width: 65%;
width: 73%;
}
.model_entry {
position: relative;
}
.model_entry .remove_model_btn {
position: absolute;
left: -23pt;
top: 4pt;
}
.diffusers-disabled-on-startup .diffusers-restart-needed {

View File

@ -2262,6 +2262,8 @@ function addModelEntry(modelContainer, modelsList, modelType, defaultValue, stre
let entry = [modelName, modelStrength, modelElement]
let removeBtn = document.createElement("button")
removeBtn.className = "remove_model_btn"
removeBtn.setAttribute("title", "Remove model")
removeBtn.innerHTML = '<i class="fa-solid fa-minus"></i>'
if (modelsList.length === 0) {