diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 9ab445a6..a482fd4b 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install pytest mypy + pip install pytest pytest-asyncio mypy - name: Run pytest run: | python -m pytest -q diff --git a/js/features/panel/views/headerView.js b/js/features/panel/views/headerView.js index 7faf0cae..ece3dd97 100644 --- a/js/features/panel/views/headerView.js +++ b/js/features/panel/views/headerView.js @@ -11,12 +11,10 @@ export function createHeaderView() { const headerLeft = document.createElement("div"); headerLeft.classList.add("mjr-am-header-left"); - const headerIcon = document.createElement("img"); - headerIcon.className = "mjr-am-header-icon"; - headerIcon.alt = "Assets Manager"; - try { - headerIcon.src = new URL("../../../../ressources/icon.png", import.meta.url).toString(); - } catch {} + // Use PrimeIcons (ComfyUI ships them) for maximum compatibility across extension loaders. + const headerIcon = document.createElement("i"); + headerIcon.className = "mjr-am-header-icon pi pi-folder"; + headerIcon.setAttribute("aria-hidden", "true"); const headerTitle = document.createElement("div"); headerTitle.classList.add("mjr-am-header-title"); diff --git a/js/theme/theme-comfy.css b/js/theme/theme-comfy.css index 4c88d54a..3ed2d138 100644 --- a/js/theme/theme-comfy.css +++ b/js/theme/theme-comfy.css @@ -215,10 +215,12 @@ } .mjr-assets-manager .mjr-am-header-icon { - width: 16px; - height: 16px; - display: block; - object-fit: contain; + font-size: 16px; + line-height: 1; + display: inline-flex; + align-items: center; + justify-content: center; + opacity: 0.9; } .mjr-assets-manager .mjr-am-header-title { diff --git a/ressources/icon.png b/ressources/icon.png index 2d122b7c..e1eb24e5 100644 Binary files a/ressources/icon.png and b/ressources/icon.png differ diff --git a/tests/parser/.gitkeep b/tests/parser/.gitkeep new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/tests/parser/.gitkeep @@ -0,0 +1 @@ +