Skip to content

Commit ea5e5a7

Browse files
authored
Merge pull request #180 from sneaker102/master
Let input container to take full width
2 parents 58ec1df + 9c9f942 commit ea5e5a7

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.full-width {
2+
flex-basis: 100%;
3+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div
22
[ngStyle]="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'column':'row'}">
3-
<div *ngFor="let s of states; let i = index" (mouseenter)="hover=i" (mouseleave)="hover=null">
3+
<div *ngFor="let s of states; let i = index" (mouseenter)="hover=i" (mouseleave)="hover=null" [class.full-width]="this.state.schema.layout === 'vertical'">
44
<app-wrapper [state]="s"></app-wrapper>
55
<button mat-icon-button (click)="remove(i)" [style.visibility]="i===hover ? 'visible' : 'hidden'">
66
<mat-icon>remove_circle_outline</mat-icon>
@@ -9,4 +9,4 @@
99
<button mat-icon-button (click)=" add()">
1010
<mat-icon>add_circle_outline</mat-icon>
1111
</button>
12-
</div>
12+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.full-width {
2+
flex-basis: 100%;
3+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<div *ngIf="!state.schema.order"
22
[ngStyle]="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'column':'row'}">
3-
<div *ngFor="let s of states; let i = index">
3+
<div *ngFor="let s of states; let i = index" [class.full-width]="this.state.schema.layout === 'vertical'">
44
<app-wrapper *ngIf="show(i)" [state]="s"></app-wrapper>
55
&nbsp;
66
</div>
77
</div>
88
<div *ngIf="state.schema.order"
99
[ngStyle]="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'column':'row'}">
10-
<div *ngFor="let o of this.state.schema.order">
10+
<div *ngFor="let o of this.state.schema.order" [class.full-width]="this.state.schema.layout === 'vertical'">
1111
<app-wrapper *ngIf="getState(o)" [state]="getState(o)!"></app-wrapper>
1212
<div
1313
[ngStyle]="{display:'flex', 'flex-wrap': 'wrap', 'flex-direction': this.state.schema.layout === 'vertical' ? 'row':'column'}">
14-
<div *ngFor="let oo of getArray(o)">
14+
<div *ngFor="let oo of getArray(o)" [class.full-width]="this.state.schema.layout === 'vertical'">
1515
<app-wrapper [state]="getState(oo)!"></app-wrapper>
1616
&nbsp;
1717
</div>
1818
</div>
1919
&nbsp;
2020
</div>
21-
</div>
21+
</div>

0 commit comments

Comments
 (0)