修复网页按钮配置功能UI错误

This commit is contained in:
nhkefus
2025-03-20 14:03:50 +08:00
parent a76afc6ccb
commit 989fd0a1ed

View File

@@ -296,10 +296,6 @@
<th>按键类型</th>
<th>执行操作</th>
</tr>
<tr>
<td>连续短按1次</td>
<td><a>总开关</a></td>
</tr>
</table>
</div>
@@ -903,6 +899,12 @@ for (var i = 0; i < actions.length; i++) {
`;
}
document.getElementById("short_click_events_tb").innerHTML = tb_html;
// 手动将所有 .mdl-menu 挪到 body 下
document.querySelectorAll('.mdl-menu').forEach(menu => {
if (menu.parentElement !== document.body) {
document.body.appendChild(menu);
}
});
@@ -1252,7 +1254,11 @@ for (var i = 0; i < actions.length; i++) {
`;
}
document.getElementById("short_click_events_tb").innerHTML = tb_html;
document.querySelectorAll('.mdl-menu').forEach(menu => {
if (menu.parentElement !== document.body) {
document.body.appendChild(menu);
}
});
window.setTimeout(GetPowerRecord, 3000);
}, power_idx.toString());