Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve print margin for notes export #742

Merged
merged 1 commit into from Oct 24, 2022

Conversation

lomby92
Copy link
Contributor

@lomby92 lomby92 commented Oct 24, 2022

Details in the PR code comments

@@ -25,7 +25,7 @@ const slidesWithNote = computed(() => rawRoutes
</div>
</div>

<div v-for="(slide, index) of slidesWithNote" :key="index" class="flex flex-col gap-4">
<div v-for="(slide, index) of slidesWithNote" :key="index" class="flex flex-col gap-4 break-inside-avoid-page">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid to break a single slide block. It's more usable if the slide comments are all together in a single printed page

@@ -47,5 +47,19 @@ const slidesWithNote = computed(() => rawRoutes
<style lang="postcss">
@page {
size: A4;
margin-top: 1.5cm;
margin-bottom: 1cm;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add default print margins, prevent to have text too near the top and the bottom.

@antfu antfu changed the title fixup #718: allow to print all pages feat: improve print margin for notes export Oct 24, 2022
@antfu antfu merged commit 0dca0c4 into slidevjs:main Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants