Browse Source
Merge pull request #8057 from engix-ltd/only_lower_bound_mobile_height
Leave only lower bould for widget's height in mobile mode.
pull/8278/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget-config.component.html
-
ui-ngx/src/app/modules/home/components/widget/widget-config.component.ts
|
|
|
@ -498,7 +498,7 @@ |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<mat-label translate>widget-config.height</mat-label> |
|
|
|
<input matInput formControlName="mobileHeight" type="number" min="1" max="10" step="1"> |
|
|
|
<input matInput formControlName="mobileHeight" type="number" min="1" step="1"> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
@ -255,7 +255,7 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, Cont |
|
|
|
}); |
|
|
|
this.layoutSettings = this.fb.group({ |
|
|
|
mobileOrder: [null, [Validators.pattern(/^-?[0-9]+$/)]], |
|
|
|
mobileHeight: [null, [Validators.min(1), Validators.max(10), Validators.pattern(/^\d*$/)]], |
|
|
|
mobileHeight: [null, [Validators.min(1), Validators.pattern(/^\d*$/)]], |
|
|
|
mobileHide: [false], |
|
|
|
desktopHide: [false] |
|
|
|
}); |
|
|
|
|