diff --git a/projects/common/unit.ts b/projects/common/unit.ts index 86ddb938e1806d2887c453309dcb4e01ce44f550..bb8528b3d01a93c7c2bc1b1e5110f0e4e9b9ab33 100644 --- a/projects/common/unit.ts +++ b/projects/common/unit.ts @@ -5,7 +5,6 @@ export interface Unit { export interface UnitPage { sections: UnitPageSection[]; width: number; - height: number; backgroundColor: string; } diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts b/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts index 92cb83d0d5c6a4b687c612dbe38589af2690a790..0cca0806d5ac06c465e03113aea4325821904371 100644 --- a/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts +++ b/projects/editor/src/app/components/unit-view/page-view/canvas/page-canvas.component.ts @@ -25,7 +25,6 @@ import { CanvasDragOverlayComponent } from './canvas-drag-overlay.component'; <div class="canvasFrame" [style.width.px]="page.width" - [style.height.px]="page.height" [style.background-color]="page.backgroundColor"> <div *ngIf="sectionEditMode" cdkDropList (cdkDropListDropped)="dropSection($event)"> <div #section_component app-canvas-section class="section" diff --git a/projects/editor/src/app/components/unit-view/page-view/page-view.component.html b/projects/editor/src/app/components/unit-view/page-view/page-view.component.html index 164e6adb5030b6a43134974660029cd97dc0c8ee..e64587f52a857c6c5a6b3895571ae67a0dc4e6c6 100644 --- a/projects/editor/src/app/components/unit-view/page-view/page-view.component.html +++ b/projects/editor/src/app/components/unit-view/page-view/page-view.component.html @@ -4,10 +4,6 @@ <mat-label>Breite</mat-label> <input matInput type="number" [(ngModel)]="page.width"> </mat-form-field> - <mat-form-field> - <mat-label>Höhe</mat-label> - <input matInput type="number" [(ngModel)]="page.height"> - </mat-form-field> <mat-form-field> <mat-label>Hintergrundfarbe</mat-label> <input matInput type="text" [(ngModel)]="page.backgroundColor"> diff --git a/projects/editor/src/app/model/UnitFactory.ts b/projects/editor/src/app/model/UnitFactory.ts index d7167f0b0a5a4003f1f878ab5f79f68a15e060a4..726623d24bb0f1bfb42b93abc7d8c2660c381279 100644 --- a/projects/editor/src/app/model/UnitFactory.ts +++ b/projects/editor/src/app/model/UnitFactory.ts @@ -15,9 +15,8 @@ export function createUnit(): Unit { export function createUnitPage(): UnitPage { return { sections: [], - width: 1200, - height: 550, - backgroundColor: '#FFFAF0' + width: 1100, + backgroundColor: 'white' }; } @@ -38,7 +37,7 @@ export function createUnitUIElement(type: string): UnitUIElement { yPosition: 0, width: 180, height: 60, - backgroundColor: 'grey', + backgroundColor: 'lightgrey', fontColor: 'blue', font: 'Arial', fontSize: 18,