From 21234c71c21459c12910b7b6fe3da5d93f6f374b Mon Sep 17 00:00:00 2001 From: Standarduser Date: Sun, 5 Jan 2025 20:11:25 +0100 Subject: [PATCH] configItemModal --- widgets/vis-homekittiles.html | 2 +- widgets/vis-homekittiles/js/vis-homekittiles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/vis-homekittiles.html b/widgets/vis-homekittiles.html index 2ac3dd1..e881534 100644 --- a/widgets/vis-homekittiles.html +++ b/widgets/vis-homekittiles.html @@ -1533,7 +1533,7 @@
-
+
MODAL
Blur: 3
Brightness: 0.3 diff --git a/widgets/vis-homekittiles/js/vis-homekittiles.js b/widgets/vis-homekittiles/js/vis-homekittiles.js index c1a2c06..0f58c3a 100644 --- a/widgets/vis-homekittiles/js/vis-homekittiles.js +++ b/widgets/vis-homekittiles/js/vis-homekittiles.js @@ -1815,7 +1815,7 @@ vis.binds["vis-homekittiles"] = { */ //set css code //var css = `#vis_container:has(.homekitTiles.config-item) ~ .ui-widget-overlay {background: ${background}; opacity: ${opacity};}`; - var css = `#vis_container:has(.homekitTiles.config-item) ~ .ui-widget-overlay {background: unset; opacity: unset; backdrop-filter: blur(${blur}px) brightness(${brightness});}`; + var css = `body:has(.homekitTiles.config-item.config-modal) .ui-widget-overlay {background: unset; opacity: unset; backdrop-filter: blur(${blur}px) brightness(${brightness});}`; //append css to head var head = document.head || document.getElementsByTagName('head')[0];