fix(html): fix html container sizing (#881)

This commit is contained in:
Sam Potts
2026-03-11 14:27:40 +11:00
committed by GitHub
parent 6d044e3c0f
commit abf8753fe6
15 changed files with 65 additions and 70 deletions
@@ -13,6 +13,14 @@ function getCdnFileName(useCase: UseCase, skin: Skin): string {
}
function generateCdnCode(useCase: UseCase, skin: Skin): string {
if (useCase === 'background-video') {
return `<script type="module">
import '${CDN_BASE}/background/player.js';
import '${CDN_BASE}/background/skin.js';
</script>
<link rel="stylesheet" href="${CDN_BASE}/background/skin.css" />`;
}
const name = getCdnFileName(useCase, skin);
return `<script type="module" src="${CDN_BASE}/${name}.js"></script>