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:
co-authored by
Claude Sonnet 4.6
parent
e93bb1ad41
commit
b4e45c1c22
@@ -1595,7 +1595,7 @@ function _abrirModalConToken(token) {
|
|||||||
load.style.display = '';
|
load.style.display = '';
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
setTimeout(() => {
|
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);
|
}, 80);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1617,7 +1617,7 @@ function abrirTomaProgresiva(token, turnoId, formularioId) {
|
|||||||
_tomaProgresivaActiva = true;
|
_tomaProgresivaActiva = true;
|
||||||
_setBtnCerrarConsent(true);
|
_setBtnCerrarConsent(true);
|
||||||
setTimeout(() => {
|
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);
|
}, 80);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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; }
|
.mp-prog-fill { height:100%;background:linear-gradient(90deg,var(--mp-color),#22c55e);border-radius:3px;transition:width .5s ease; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<?php $zoom = isset($_GET['zoom']) ? (float)$_GET['zoom'] : 1.0; ?>
|
||||||
|
<body<?= $zoom !== 1.0 ? ' style="zoom:' . $zoom . '"' : '' ?>>
|
||||||
|
|
||||||
|
|
||||||
<!-- ── Barra de acciones ──────────────────────────────────────────── -->
|
<!-- ── Barra de acciones ──────────────────────────────────────────── -->
|
||||||
<div class="action-bar no-print">
|
<div class="action-bar no-print">
|
||||||
|
|||||||
Reference in New Issue
Block a user