This repository was archived by the owner on Jul 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1405,12 +1405,19 @@ async function showAddNestsModal() {
14051405 <p style="color:var(--text-secondary);font-size:0.85rem;margin-bottom:16px">Select nests from the panel to make them available:</p>
14061406 <div id="add-nests-list" style="max-height:300px;overflow-y:auto;margin-bottom:16px">
14071407 ${ data . nests . map ( n => ahtml `
1408- <label style="display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);cursor:pointer">
1409- <input type="checkbox" class="add-nest-checkbox" value="${ n . id } " data-name="${ n . name } " />
1408+ <label style="display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border);cursor:pointer" class="custom-checkbox-label">
1409+ <input type="checkbox" class="add-nest-checkbox" value="${ n . id } " data-name="${ n . name } " style="display:none" />
1410+ <span class="custom-checkbox-ui" style="width:20px;height:20px;border:2px solid var(--text-secondary);border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:var(--transition);background:transparent">
1411+ <svg class="custom-checkbox-check" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="var(--bg-primary)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="display:none"><polyline points="20 6 9 17 4 12"/></svg>
1412+ </span>
14101413 <span><strong>${ n . name } </strong> <span style="color:var(--text-secondary);font-size:0.82rem">(ID: ${ n . id } )</span></span>
14111414 </label>
14121415 ` ) . join ( '' ) }
14131416 </div>
1417+ <style id="custom-checkbox-style">
1418+ .custom-checkbox-label input:checked + .custom-checkbox-ui { background: var(--accent-1); border-color: var(--accent-1); }
1419+ .custom-checkbox-label input:checked + .custom-checkbox-ui .custom-checkbox-check { display: block; }
1420+ </style>
14141421 <div style="display:flex;gap:8px">
14151422 <button class="btn btn-primary btn-full" id="btn-confirm-add-nests" style="justify-content:center">Add Selected</button>
14161423 <button class="btn btn-ghost btn-full" onclick="closeAdminModal()" style="justify-content:center">Cancel</button>
You can’t perform that action at this time.
0 commit comments