fix: colapsar márgenes !important de secciones condicionales ocultas
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
8a384088c3
commit
806ae0b552
@@ -1032,7 +1032,7 @@ function _addExamWizardHtml(string $cid): string {
|
|||||||
}
|
}
|
||||||
if (($_saltarSeccion && !$modoEditar) || $_mpSkipSec) continue; ?>
|
if (($_saltarSeccion && !$modoEditar) || $_mpSkipSec) continue; ?>
|
||||||
<div class="esquema-sep<?= $compact ? ' campo-full' : '' ?>" data-campo-id="<?= esc2($campo['id'] ?? '') ?>"
|
<div class="esquema-sep<?= $compact ? ' campo-full' : '' ?>" data-campo-id="<?= esc2($campo['id'] ?? '') ?>"
|
||||||
<?= ($_saltarSeccion && $modoEditar) ? 'style="max-height:0;opacity:0;overflow:hidden;pointer-events:none;margin:0;padding:0"' : '' ?>><?= esc2($campo['label'] ?? '') ?></div>
|
<?= ($_saltarSeccion && $modoEditar) ? 'style="max-height:0;opacity:0;overflow:hidden;pointer-events:none;margin:0!important;padding:0!important"' : '' ?>><?= esc2($campo['label'] ?? '') ?></div>
|
||||||
<?php continue; endif;
|
<?php continue; endif;
|
||||||
if (($_saltarSeccion && !$modoEditar) || $_mpSkipSec) continue;
|
if (($_saltarSeccion && !$modoEditar) || $_mpSkipSec) continue;
|
||||||
|
|
||||||
@@ -3061,8 +3061,8 @@ const topaz = (() => {
|
|||||||
el.style.opacity = activo ? '1' : '0';
|
el.style.opacity = activo ? '1' : '0';
|
||||||
el.style.overflow = activo ? '' : 'hidden';
|
el.style.overflow = activo ? '' : 'hidden';
|
||||||
el.style.pointerEvents = activo ? '' : 'none';
|
el.style.pointerEvents = activo ? '' : 'none';
|
||||||
el.style.margin = activo ? '' : '0';
|
if (activo) { el.style.removeProperty('margin'); el.style.removeProperty('padding'); }
|
||||||
el.style.padding = activo ? '' : '0';
|
else { el.style.setProperty('margin','0','important'); el.style.setProperty('padding','0','important'); }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user