fix(cms): align setting label and switch in the shared horizontal row
DC CMS qualification / qualify (push) Successful in 1m29s
DC CMS qualification / qualify (push) Successful in 1m29s
This commit is contained in:
@@ -4391,6 +4391,7 @@ function renderBooleanField({ block, editableField, grid }) {
|
||||
if (editableField.layout === "row") {
|
||||
const row = document.querySelector("#ds-settingRow").content.firstElementChild.cloneNode(true);
|
||||
row.classList.add("wide");
|
||||
row.querySelector(".nodedc-settings-card__body").remove();
|
||||
row.querySelector("h2").textContent = editableField.title || editableField.label || editableField.path;
|
||||
row.querySelector('[data-slot="control"]').replaceWith(label);
|
||||
grid.append(row);
|
||||
|
||||
Reference in New Issue
Block a user