feat(lugar): formularios en modal 10% más grandes en tablet

Pasa zoom=1.1 al iframe; ver_formulario_enviado.php aplica zoom al body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-24 10:58:46 -05:00
co-authored by Claude Sonnet 4.6
parent e93bb1ad41
commit b4e45c1c22
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1595,7 +1595,7 @@ function _abrirModalConToken(token) {
load.style.display = '';
modal.style.display = 'flex';
setTimeout(() => {
iframe.src = `${BASE_WA}ver_formulario_enviado.php?token=${encodeURIComponent(token)}&embed=1&compact=1`;
iframe.src = `${BASE_WA}ver_formulario_enviado.php?token=${encodeURIComponent(token)}&embed=1&compact=1&zoom=1.1`;
}, 80);
}
@@ -1617,7 +1617,7 @@ function abrirTomaProgresiva(token, turnoId, formularioId) {
_tomaProgresivaActiva = true;
_setBtnCerrarConsent(true);
setTimeout(() => {
iframe.src = `${BASE_WA}ver_formulario_enviado.php?token=${encodeURIComponent(token)}&embed=1&compact=1&modo=toma_progresiva`;
iframe.src = `${BASE_WA}ver_formulario_enviado.php?token=${encodeURIComponent(token)}&embed=1&compact=1&modo=toma_progresiva&zoom=1.1`;
}, 80);
}
+3 -1
View File
@@ -710,7 +710,9 @@ function _addExamWizardHtml(string $cid): string {
.mp-prog-fill { height:100%;background:linear-gradient(90deg,var(--mp-color),#22c55e);border-radius:3px;transition:width .5s ease; }
</style>
</head>
<body>
<?php $zoom = isset($_GET['zoom']) ? (float)$_GET['zoom'] : 1.0; ?>
<body<?= $zoom !== 1.0 ? ' style="zoom:' . $zoom . '"' : '' ?>>
<!-- ── Barra de acciones ──────────────────────────────────────────── -->
<div class="action-bar no-print">