feat: improved printing settings

This commit is contained in:
2026-07-14 10:16:47 +02:00
parent 8d9d95ddf5
commit c1afd5a6d4
5 changed files with 71 additions and 25 deletions
+8 -3
View File
@@ -250,7 +250,7 @@ const SECTION_TYPES = [
if (!img.src || img.classList.contains('hidden')) return;
const clone = document.createElement('img');
clone.src = img.src;
clone.className = 'max-w-full max-h-48 object-contain rounded-box my-2';
clone.className = 'max-w-full max-h-96 object-contain rounded-box my-2';
target.appendChild(clone);
},
},
@@ -357,8 +357,13 @@ export function buildSectionsFrom(sectionsData, container = sectionsContainer) {
// mismo mecanismo que restaura un patrón guardado.
const DEFAULT_SECTIONS = [
{ type: 'image', dataUrl: '' },
{ type: 'title', text: {} },
{ type: 'materials', materials: [] },
{
type: 'group',
children: [
{ type: 'title', text: {} },
{ type: 'materials', materials: [] },
]
},
{
type: 'group',
children: [