mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
@@ -279,8 +279,8 @@ function applyStyles(styles) {
|
||||
if (index > -1) newStyles.splice(index, 1);
|
||||
else newStyles.push(desiredStyle);
|
||||
gradioApp().querySelectorAll('.extra-network-cards .card').forEach((el) => {
|
||||
if (newStyles.includes(el.getAttribute('data-name'))) el.style.boxShadow = '0 0 2px 4px var(--button-primary-border-color)';
|
||||
else el.style.boxShadow = 'none';
|
||||
if (newStyles.includes(el.getAttribute('data-name'))) el.classList.add('card-selected');
|
||||
else el.classList.remove('card-selected');
|
||||
});
|
||||
return newStyles.join('|');
|
||||
}
|
||||
|
||||
@@ -1250,6 +1250,11 @@ table.settings-value-table td {
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
*.extra-network-cards .card-selected {
|
||||
transform: scale(0.9);
|
||||
box-shadow: 0 0 2em var(--button-primary-background-fill);
|
||||
}
|
||||
|
||||
.extra-network-cards .card .overlay {
|
||||
background: none;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user