diff --git a/src/components/editor/pdf/set/PDFConfigurationSetCover.vue b/src/components/editor/pdf/set/PDFConfigurationSetCover.vue index 455904f69..73465a185 100644 --- a/src/components/editor/pdf/set/PDFConfigurationSetCover.vue +++ b/src/components/editor/pdf/set/PDFConfigurationSetCover.vue @@ -16,9 +16,9 @@ >
- + import { usePDFStore } from '@/store/pdf' import { useProject } from '@/use/project' - import { reactive, computed } from 'vue' + import { computed } from 'vue' import { useI18n } from 'vue-i18n' const PDF = usePDFStore() @@ -42,11 +42,6 @@ const pdf = computed(() => PDF.styles) - const switcher = reactive({ - cover: PDF.styles.switcher.cover, - main: PDF.styles.switcher.main, - }) - const onCoverImageLoad = (e: any) => { PDF.setCoverBackground(e) } diff --git a/src/use/defines.ts b/src/use/defines.ts index 132a95323..c747e4a6c 100644 --- a/src/use/defines.ts +++ b/src/use/defines.ts @@ -154,7 +154,7 @@ export const useDefines = () => { } const pageMargins = (): Array => { - return [40, 5, 40, 20] + return [40, 20, 40, 20] } return { pageSize, pageMargins, pageOrientation, pageSizeFixes } diff --git a/src/use/pdf.ts b/src/use/pdf.ts index d93bd23ac..8657f8f7f 100644 --- a/src/use/pdf.ts +++ b/src/use/pdf.ts @@ -476,7 +476,7 @@ export const usePDF = () => { pageOrientation: generate().base().pageOrientation, pageMargins: { left: 0, - top: 0, + top: generate().base().pageMargins[1], right: 0, bottom: generate().base().pageMargins[3], },