Skip to content

Commit 97fe50b

Browse files
committed
object flex layout
1 parent e3860fd commit 97fe50b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
<ng-container *ngIf="state.schema.layout === 'vertical'">
1+
<div
2+
[ngStyle]="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'column':'row'}">
23
<div *ngFor="let s of states; let i = index">
34
<app-wrapper *ngIf="show(i)" [state]="s"></app-wrapper>
45
&nbsp;
56
</div>
6-
</ng-container>
7-
<ng-container *ngIf="state.schema.layout !== 'vertical'">
8-
<span *ngFor="let s of states; let i = index">
9-
<app-wrapper *ngIf="show(i)" [state]="s"></app-wrapper>
10-
&nbsp;
11-
</span>
12-
</ng-container>
7+
</div>

0 commit comments

Comments
 (0)