Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(live-preview): scale portrait slides to fit, remove white bands at non-16:9 sizes

hugohe3f2d8829fe565
diff --git a/skills/ppt-master/scripts/svg_editor/static/style.css b/skills/ppt-master/scripts/svg_editor/static/style.css
index c43711b3..893a3e2e 100644
--- a/skills/ppt-master/scripts/svg_editor/static/style.css
+++ b/skills/ppt-master/scripts/svg_editor/static/style.css
@@ -229,9 +229,14 @@ html, body {
#svg-content svg {
display: block;
+ /* Both dimensions auto so the box hugs the slide at any aspect ratio: with
+ only height:auto, portrait formats (e.g. 1242x1660) keep their attribute
+ width while max-height shrinks the height, leaving large white bands
+ inside the white card. width:auto lets the element scale proportionally. */
+ width: auto;
+ height: auto;
max-width: 100%;
max-height: calc(100vh - 72px);
- height: auto;
}
/* ---------- SVG element interaction states ---------- */