Skip to content
Snippets Groups Projects
Commit a7fa8110 authored by jojohoch's avatar jojohoch
Browse files

[editor] Display total page width in page properties dialog

Change translation key and meaning from 'typeAreaWidth' to
'sectionWidth'
parent d3206918
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,11 @@
(change)="updateModel(page, 'hasMaxWidth', $any($event.source).checked)">
{{'pageProperties.maxWidth' | translate }}
</mat-checkbox>
<div *ngIf="page.hasMaxWidth" class="menuItem">
{{'pageProperties.pageWidth' | translate}}: {{page.maxWidth + 2 * page.margin}}px
</div>
<mat-form-field *ngIf="page.hasMaxWidth" class="menuItem" appearance="fill">
<mat-label>{{'pageProperties.typeAreaWidth' | translate }}</mat-label>
<mat-label>{{'pageProperties.sectionWidth' | translate }}</mat-label>
<input matInput type="number" min="0" #maxWidth="ngModel"
[ngModel]="page.maxWidth"
(click)="$any($event).stopPropagation()"
......
......@@ -29,7 +29,8 @@
},
"pageProperties": {
"maxWidth": "Maximalbreite",
"typeAreaWidth": "Satzspiegelbreite",
"sectionWidth": "Abschnittbreite",
"pageWidth": "Seitenbreite",
"marginWidth": "Randbreite",
"backgroundColor": "Hintergrundfarbe",
"alwaysVisible": "Immer angezeigt",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment