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
parent
commit
c58615cf0f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/components/widget/widget-config.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/widget/widget-config.component.ts

2
ui-ngx/src/app/modules/home/components/widget/widget-config.component.html

@ -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>

2
ui-ngx/src/app/modules/home/components/widget/widget-config.component.ts

@ -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]
});

Loading…
Cancel
Save