From ef1db4c2a2c0b7d69001f3aa9da097b4ae2df62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20=20Sk=C3=B6ld?= Date: Wed, 5 Jun 2024 00:19:09 +0200 Subject: [PATCH] Add flex when updating background for starred items --- web/js/sn0w.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/js/sn0w.js b/web/js/sn0w.js index 108e5fe..5224077 100644 --- a/web/js/sn0w.js +++ b/web/js/sn0w.js @@ -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'; } };