fix(cms): reuse canonical profile and nested form surfaces
DC CMS qualification / qualify (push) Successful in 1m39s

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 13:09:58 +03:00
parent 73bf4639a2
commit 10c2d6a70d
13 changed files with 48 additions and 39 deletions
+11
View File
@@ -135,6 +135,17 @@ function fields() {
for (const input of all("input:not([type=hidden]):not([type=checkbox]):not([type=file]):not([type=range]),textarea")) if (!input.closest(".cms-ui-island")) addClass(input, "nodedc-field__control");
}
function cards() {
// Use the library's opaque nested surface: translucent local layers made
// collection backgrounds converge with the field material at greater depth.
for (const region of all(".collection-item-card,.json-details")) {
if (region.dataset.dsSurface) continue;
const surface = clone("nestedSurface");
for (const attribute of surface.attributes) {
if (attribute.name === "class") addClass(region, attribute.value);
else region.setAttribute(attribute.name, attribute.value);
}
region.dataset.dsSurface = "true";
}
for (const card of all(".settings-card,.content-group,.content-panel")) {
if (card.dataset.dsCard) continue;
card.dataset.dsCard = "true";