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

[editor] Replace Flex layout module with classes in AppComponent

- Reformat styles
parent eee1f1f2
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,27 @@ import { UnitService } from './services/unit.service'; ...@@ -8,14 +8,27 @@ import { UnitService } from './services/unit.service';
@Component({ @Component({
selector: 'aspect-editor', selector: 'aspect-editor',
template: ` template: `
<div fxLayout="column" class="mainView"> <div class="mainView fx-column-start-stretch">
<aspect-toolbar *ngIf="isStandalone"></aspect-toolbar> <aspect-toolbar *ngIf="isStandalone"></aspect-toolbar>
<aspect-unit-view fxFlex></aspect-unit-view> <aspect-unit-view class="fx-flex"></aspect-unit-view>
</div> </div>
`, `,
styles: [ styles: [`
'.mainView {height: 100%;}' .mainView {
] height: 100%;
}
.fx-column-start-stretch {
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: start;
align-items: stretch;
}
.fx-flex {
flex: 1 1 0;
box-sizing: border-box;
}
`]
}) })
export class AppComponent implements OnInit { export class AppComponent implements OnInit {
isStandalone = window === window.parent; isStandalone = window === window.parent;
......
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