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

[editor] Replace Flex layout module with classes in ElementPositionProps

parent 832ec15e
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ import { SelectionService } from '../../../services/selection.service'; ...@@ -8,7 +8,7 @@ import { SelectionService } from '../../../services/selection.service';
@Component({ @Component({
selector: 'aspect-element-postion-properties', selector: 'aspect-element-postion-properties',
template: ` template: `
<div fxLayout="column"> <div class="fx-column-start-stretch">
<aspect-position-field-set <aspect-position-field-set
*ngIf="positionProperties" *ngIf="positionProperties"
[positionProperties]="positionProperties" [positionProperties]="positionProperties"
...@@ -22,8 +22,8 @@ import { SelectionService } from '../../../services/selection.service'; ...@@ -22,8 +22,8 @@ import { SelectionService } from '../../../services/selection.service';
<ng-container *ngIf="(selectionService.selectedElements | async)!.length > 1"> <ng-container *ngIf="(selectionService.selectedElements | async)!.length > 1">
{{'propertiesPanel.alignment' | translate }} {{'propertiesPanel.alignment' | translate }}
<div class="alignment-button-group" [style.margin]="'10px 0'" <div class="alignment-button-group fx-row-space-evenly-center"
fxLayout="row" fxLayoutAlign="space-evenly center"> [style.margin]="'10px 0'">
<button (click)="alignElements('left')"> <button (click)="alignElements('left')">
<mat-icon>align_horizontal_left</mat-icon> <mat-icon>align_horizontal_left</mat-icon>
</button> </button>
...@@ -39,7 +39,24 @@ import { SelectionService } from '../../../services/selection.service'; ...@@ -39,7 +39,24 @@ import { SelectionService } from '../../../services/selection.service';
</div> </div>
</ng-container> </ng-container>
</div> </div>
` `,
styles: [`
.fx-column-start-stretch {
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
}
.fx-row-space-evenly-center {
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
}
`]
}) })
export class ElementPositionPropertiesComponent { export class ElementPositionPropertiesComponent {
@Input() dimensions!: { width?: number; height?: number; dynamicWidth: boolean; }; @Input() dimensions!: { width?: number; height?: number; dynamicWidth: boolean; };
......
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