fix(cms): separate leaf form groups with shared surfaces
DC CMS qualification / qualify (push) Successful in 2m33s

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 13:16:35 +03:00
parent 10c2d6a70d
commit aff551e4d4
3 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -137,8 +137,10 @@ function fields() {
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")) {
for (const region of all(".collection-item-card,.json-details,.field-grid,.group-grid")) {
if (region.dataset.dsSurface) continue;
// A collection already owns this surface; avoid stacking or double padding.
if (region.matches(".field-grid,.group-grid") && (region.closest(".collection-item-card") || region.querySelector(".collection-field"))) continue;
const surface = clone("nestedSurface");
for (const attribute of surface.attributes) {
if (attribute.name === "class") addClass(region, attribute.value);