Skip to content

Commit ae26596

Browse files
committed
Simple font size implementation, fixes #4650
1 parent 48a9c65 commit ae26596

36 files changed

+637
-222
lines changed

frontend/src/components/print/PrintConfigurator.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@
6262
:label="$tc('components.print.printConfigurator.pageNumbers')"
6363
@input="onChange"
6464
/>
65+
<e-select
66+
v-model="cnf.options.pageSize"
67+
class="mt-4"
68+
:items="pageSizes"
69+
:label="$tc('components.print.printConfigurator.fontSize')"
70+
@input="onChange"
71+
/>
6572
</v-expansion-panel-content>
6673
</v-expansion-panel>
6774
</v-expansion-panels>
@@ -180,12 +187,18 @@ export default {
180187
this.$store.getters.getLastPrintConfig(this.camp._meta.self, {
181188
language: this.lang,
182189
documentName: campShortTitle(this.camp),
183-
options: { pageNumbers: false },
190+
options: { pageNumbers: false, pageSize: 'A5' },
184191
camp: this.camp._meta.self,
185192
contents: this.defaultContents(),
186193
})
187194
)
188195
},
196+
pageSizes() {
197+
return ['A5', 'A4', 'A3'].map((size) => ({
198+
value: size,
199+
text: this.$tc(`components.print.printConfigurator.fontSizes.${size}`),
200+
}))
201+
},
189202
isDev() {
190203
return getEnv().FEATURE_DEVELOPER ?? false
191204
},

0 commit comments

Comments
 (0)