modernui updates

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-05 13:28:55 -04:00
parent db81f08a88
commit 692c236831
6 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -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('|');
}
+5
View File
@@ -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%;