mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-11 16:58:31 +01:00
Card overlay text improvement
This commit is contained in:
parent
c1bcf9fa8a
commit
fcb2f1b555
@ -1398,6 +1398,7 @@ function refreshTagsList() {
|
||||
|
||||
if (idx !== -1) {
|
||||
activeTags[idx].originElement.classList.remove(activeCardClass);
|
||||
activeTags[idx].originElement.querySelector('.modifier-card-overlay').innerText = '+';
|
||||
|
||||
activeTags.splice(idx, 1);
|
||||
refreshTagsList();
|
||||
@ -1567,6 +1568,8 @@ async function loadModifiers() {
|
||||
// remove modifier from active array
|
||||
activeTags = activeTags.filter(x => x.name != modifierName);
|
||||
modifierCard.classList.remove(activeCardClass);
|
||||
|
||||
modifierCard.querySelector('.modifier-card-overlay').innerText = '+';
|
||||
} else {
|
||||
// add modifier to active array
|
||||
activeTags.push({
|
||||
@ -1577,6 +1580,8 @@ async function loadModifiers() {
|
||||
});
|
||||
|
||||
modifierCard.classList.add(activeCardClass);
|
||||
|
||||
modifierCard.querySelector('.modifier-card-overlay').innerText = '-';
|
||||
}
|
||||
|
||||
refreshTagsList();
|
||||
|
Loading…
Reference in New Issue
Block a user