Skip to content

Add option to resize text automatically, if it exceeds page length #1085

@JPustkuchen

Description

@JPustkuchen

Is your feature request related to a problem? Please describe.
Longer texts or lists easily exceed the presentation page height. When writing the Markdown content, you don't want to care for this manually. Just write down the important things and be sure it fits the slide.

Describe the solution you'd like
If a page content exceeds the page size (height) it would be super helpful to have a global or per page setting like

---
autosize: true
---

which then shrinks the contents like <Transform>.

When used in the slides.md head, it should be global. When used as page setting, just for the page.

Additionally, one could think about an <Autosize> element, if it makes sense technically.

I know, technically, this might be hard! But it would be really great and honestly the last missing big thing for Slidev I'm missing!
Whao, such a great tool! Would be nice if we could figure out a solution.

Describe alternatives you've considered
Currently, the workaround is to check the slides manually and use the <Transform scale="0.x"> wrapper, but that's less convenient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions