修复抽屉面板不显示、折叠功能、暗夜切换及振幅行高亮
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
td { padding: 6px 10px; border: 1px solid var(--td-border); text-align: center; }
|
||||
tr:nth-child(even) td { background: var(--td-even); }
|
||||
td:first-child { font-weight: 500; color: var(--td-first); }
|
||||
tr.active td { background: #dbeafe !important; }
|
||||
[data-theme="dark"] tr.active td { background: #1e3a5f !important; }
|
||||
td:nth-child(2) { font-size: 0.78rem; color: var(--sub); }
|
||||
.na { color: var(--na); }
|
||||
|
||||
@@ -151,9 +153,11 @@ function toggleSection(id) {
|
||||
}
|
||||
|
||||
// ── 抽屉 ──
|
||||
var activeRow = null;
|
||||
function closeDrawer() {
|
||||
document.getElementById('overlay').classList.remove('show');
|
||||
document.getElementById('drawer').classList.remove('show');
|
||||
if (activeRow) { activeRow.classList.remove('active'); activeRow = null; }
|
||||
}
|
||||
|
||||
// ── 振幅点击 → 抽屉 ──
|
||||
@@ -196,6 +200,11 @@ document.querySelectorAll('.amp-cell').forEach(function(cell) {
|
||||
|
||||
document.getElementById('overlay').classList.add('show');
|
||||
document.getElementById('drawer').classList.add('show');
|
||||
|
||||
// 行高亮
|
||||
if (activeRow) activeRow.classList.remove('active');
|
||||
row.classList.add('active');
|
||||
activeRow = row;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user