` +
`
` +
`
` +
@@ -1414,9 +1413,6 @@ const CamSettings = {
this.byId = {};
cams.forEach((c) => { this.byId[c.id] = c; });
const tb = document.getElementById("cam-rows");
- const openLogs = new Set(
- [...document.querySelectorAll(".logbox")].filter((b) => !b.hidden).map((b) => b.id)
- );
tb.innerHTML = "";
if (this.bulk) {
// массовое редактирование: ВСЕ 64 слота сразу редактируемые (пустые — для добавления)
@@ -1448,26 +1444,15 @@ const CamSettings = {
`
| ` +
`
| ` +
`
| ` +
- `
${statusCell} | ` +
- `
` +
- ` ` +
- ` ` +
- `` +
- ` | `;
+ `
${statusCell} | `;
tb.appendChild(tr);
- const logTr = document.createElement("tr");
- logTr.className = "logrow";
- const hid = openLogs.has("log-" + c.id) ? "" : "hidden";
- logTr.innerHTML = `
| `;
- tb.appendChild(logTr);
} else {
tr.className = "slot-empty";
tr.dataset.slot = i + 1;
tr.innerHTML =
`
${i + 1} | ` +
`
— | — | — | — | — | — | ` +
- `
пусто | ` +
- `
| `;
+ `
пусто | `;
tb.appendChild(tr);
}
}
diff --git a/frontend/static/style.css b/frontend/static/style.css
index b75034d..a9436a8 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -425,8 +425,10 @@ table.cams th, table.cams td {
table.cams th { color: var(--text-dim); font-weight: 500; font-size: 11px; padding: 4px 10px; }
table.cams td.actions { white-space: nowrap; text-align: right; }
table.cams tr.slot-empty td { opacity: .5; }
-/* строка-контейнер лога не должна занимать высоту, пока лог скрыт */
-table.cams tr.logrow > td { padding: 0; border: none; }
+/* камеры: жёстко фиксированная высота строки 22px (плотная таблица) */
+table.cams.cams-fixed td, table.cams.cams-fixed th {
+ height: 22px; padding-top: 0; padding-bottom: 0; line-height: 22px;
+}
/* ── Инлайн-редактор строки (вместо всплывающего окна) ── */
.cam-edit { background: var(--panel-2); padding: 12px 12px 14px; }