Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Present: fill large displays in fullscreen (lift Reveal maxScale cap)

nyblnet67301208bad8
diff --git a/slides/src/present.ts b/slides/src/present.ts
index a6d61190..52b503f6 100644
--- a/slides/src/present.ts
+++ b/slides/src/present.ts
@@ -123,6 +123,13 @@ export function startPresentation(
width: doc.size.width,
height: doc.size.height,
margin: 0,
+ // Reveal's default maxScale is 2.0 — on a 1280-wide deck that caps the show
+ // at 2560px and letterboxes it in the middle of large displays (a 4K/5K/8K
+ // screen shows a small centred slide). Bento content is vector/text, so it
+ // upscales crisply: allow it to fill any display. minScale stays generous
+ // for tiny embeds.
+ minScale: 0.1,
+ maxScale: 100,
center: false,
hash: false,
history: false,