iobroker.mywebui 1.42.9 → 1.42.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -857,22 +857,34 @@ export class IobrokerWebui3DScreenEditor extends BaseCustomWebComponentConstruct
|
|
|
857
857
|
const assetsListContent = this._getDomElement('assetsListContent');
|
|
858
858
|
|
|
859
859
|
if (!this.sceneData.assets || this.sceneData.assets.length === 0) {
|
|
860
|
-
assetsListContent.innerHTML = '<div style="color:#888;"
|
|
860
|
+
assetsListContent.innerHTML = '<div style="color:#888;padding:20px;text-align:center;font-size:12px;">📦 No assets<br><br>Click "+ Model" to add</div>';
|
|
861
861
|
return;
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
-
let html = '';
|
|
864
|
+
let html = '<div style="display:grid;grid-template-columns:1fr 1fr;gap:8px;">';
|
|
865
865
|
for (const asset of this.sceneData.assets) {
|
|
866
866
|
html += `
|
|
867
|
-
<div style="
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
867
|
+
<div style="
|
|
868
|
+
padding:12px;
|
|
869
|
+
background:linear-gradient(135deg, #2a2a2a 0%, #242424 100%);
|
|
870
|
+
border:1px solid #333;
|
|
871
|
+
border-radius:6px;
|
|
872
|
+
cursor:pointer;
|
|
873
|
+
display:flex;
|
|
874
|
+
flex-direction:column;
|
|
875
|
+
align-items:center;
|
|
876
|
+
text-align:center;
|
|
877
|
+
font-size:11px;
|
|
878
|
+
"
|
|
879
|
+
onmouseover="this.style.borderColor='#0f0'"
|
|
880
|
+
onmouseout="this.style.borderColor='#333'">
|
|
881
|
+
<div style="font-size:28px;margin-bottom:6px;">📦</div>
|
|
882
|
+
<div style="color:#0f0;font-weight:bold;margin-bottom:3px;word-break:break-word;max-width:100%;">${asset.name.substring(0, 25)}</div>
|
|
883
|
+
<div style="color:#888;font-size:10px;">${asset.type}</div>
|
|
873
884
|
</div>
|
|
874
885
|
`;
|
|
875
886
|
}
|
|
887
|
+
html += '</div>';
|
|
876
888
|
assetsListContent.innerHTML = html;
|
|
877
889
|
}
|
|
878
890
|
|