diff --git a/app/templates/_page_editor_scripts.html b/app/templates/_page_editor_scripts.html index bc1c10f..6fe1600 100644 --- a/app/templates/_page_editor_scripts.html +++ b/app/templates/_page_editor_scripts.html @@ -55,7 +55,7 @@ if(b.type==='image')return `
${esc(b.alt||'')}
`; if(b.type==='embed'){ if(b.embed_type==='inline_dbs')return `
📊 Inline Databases
`; - if(b.embed_type==='collection')return `
Loading database...
`; + if(b.embed_type==='collection')return `
Loading database...
<`+`script>setTimeout(function(){var el=document.getElementById('inline-db-${b.collection_id}');if(el&&window.FlowDeckDB)window.FlowDeckDB.renderInto(el,${b.collection_id},null);},50);<`+`/script>
`; if(b.embed_type==='pdf')return `

Failed to load PDF

Open in new tab →
`; if(b.embed_type==='download'){ var sz=b.file_size||0;var szStr=sz<1024?sz+' B':sz<1048576?(sz/1024).toFixed(1)+' KB':(sz/1048576).toFixed(1)+' MB';