Add flex when updating background for starred items

This commit is contained in:
Lucas Sköld
2024-06-05 00:19:09 +02:00
parent 6f99a73a53
commit ef1db4c2a2
+3
View File
@@ -291,6 +291,9 @@ export class SettingUtils {
const checkAndUpdateBackgroundColor = (entry, currentBgColor) => {
if (highlightLora && currentBgColor == comfyMenuBgColor) {
entry.setAttribute('style', 'background-color: green !important');
// Ensure the entry uses flexbox for alignment
entry.style.display = 'flex';
entry.style.alignItems = 'center';
}
};