Skip to content

Commit 21070eb

Browse files
committed
finish
1 parent 3b21bdf commit 21070eb

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

src-11ty/home-assistant-connect-zwa-2/install-portable.njk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ permalink: /home-assistant-connect-zwa-2/install-portable/index.html
2121
</div>
2222
</div>
2323

24-
<!-- Troubleshooting section - inlined, no component needed -->
25-
<div class="troubleshooting-container">
24+
<div class="troubleshooting-container" style="display: none;" id="troubleshooting">
2625
<div class="troubleshooting-card">
2726
<h3>Troubleshooting</h3>
2827
<p>
@@ -156,4 +155,10 @@ permalink: /home-assistant-connect-zwa-2/install-portable/index.html
156155
const warningCard = document.createElement('warning-card');
157156
installerContainer.appendChild(warningCard);
158157
}
158+
159+
customElements.whenDefined('zwa2-install-portable').then(() => {
160+
setTimeout(() => {
161+
document.getElementById('troubleshooting').style.display = 'block';
162+
}, 300);
163+
});
159164
</script>

src-11ty/home-assistant-connect-zwa-2/use-poe.njk

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ permalink: /home-assistant-connect-zwa-2/use-poe/index.html
2525
</div>
2626
</div>
2727

28-
<!-- Troubleshooting section - inlined -->
29-
<div class="troubleshooting-container">
28+
<div class="troubleshooting-container" style="display: none;" id="troubleshooting">
3029
<div class="troubleshooting-card">
3130
<h3>Troubleshooting</h3>
3231
<p>
@@ -111,7 +110,7 @@ permalink: /home-assistant-connect-zwa-2/use-poe/index.html
111110
.troubleshooting-card {
112111
background: var(--app-bg-card);
113112
border-radius: 16px;
114-
padding: 1px 32px;
113+
padding: 26px 32px 10px;
115114
box-shadow: 0 2px 8px var(--app-shadow);
116115
margin: 20px 0 30px;
117116
}
@@ -157,12 +156,18 @@ permalink: /home-assistant-connect-zwa-2/use-poe/index.html
157156
<script type="module">
158157
import { isSerialUnavailable } from '/src/utils/const.ts';
159158
160-
if (isSerialUnavailable) {
159+
if (isSerialUnavailable) {
161160
const installerContainer = document.getElementById('installer-container');
162161
installerContainer.className = '';
163162
installerContainer.innerHTML = '';
164163
165164
const warningCard = document.createElement('warning-card');
166165
installerContainer.appendChild(warningCard);
167166
}
167+
168+
customElements.whenDefined('zwa2-install-poe').then(() => {
169+
setTimeout(() => {
170+
document.getElementById('troubleshooting').style.display = 'block';
171+
}, 300);
172+
});
168173
</script>

0 commit comments

Comments
 (0)