Browse Source

Leave only lower bould for widget's height in mobile mode.

pull/8057/head
devaskim 4 years ago
parent
commit
96911590e1
  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

@ -508,7 +508,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