Browse Source

Merge pull request #7526 from vvlladd28/improvement/data-key/style

[3.4.2] UI: Minor style fixes in data key config
pull/7546/head
Igor Kulikov 4 years ago
committed by GitHub
parent
commit
3066192901
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      ui-ngx/src/app/modules/home/components/widget/data-key-config.component.html
  2. 8
      ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss

14
ui-ngx/src/app/modules/home/components/widget/data-key-config.component.html

@ -63,20 +63,20 @@
</mat-form-field>
</div>
<section *ngIf="widgetType === widgetTypes.latest && modelValue.type === dataKeyTypes.timeseries" fxLayout="column">
<mat-form-field style="padding-bottom: 46px;">
<mat-form-field>
<mat-label translate>datakey.aggregation</mat-label>
<mat-select formControlName="aggregationType" style="min-width: 150px;">
<mat-option *ngFor="let aggregation of aggregations" [value]="aggregation">
{{ aggregationTypesTranslations.get(aggregationTypes[aggregation]) | translate }}
</mat-option>
</mat-select>
<mat-hint style="line-height: 15px;">
{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }}
<section *ngIf="dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE">
{{ 'datakey.aggregation-type-hint-common' | translate }}
</section>
</mat-hint>
</mat-form-field>
<div class="tb-hint after-fields">
{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }}
<section *ngIf="dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE">
{{ 'datakey.aggregation-type-hint-common' | translate }}
</section>
</div>
<fieldset *ngIf="dataKeyFormGroup.get('aggregationType').value && dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE" class="fields-group fields-group-slider">
<legend class="group-title" translate>datakey.delta-calculation</legend>
<mat-expansion-panel class="tb-settings comparison" [expanded]="dataKeyFormGroup.get('comparisonEnabled').value" [disabled]="!dataKeyFormGroup.get('comparisonEnabled').value">

8
ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss

@ -58,6 +58,12 @@
}
}
}
.tb-hint.after-fields {
margin-top: -1.25em;
max-width: fit-content;
line-height: 15px;
}
}
}
@ -95,7 +101,7 @@
&.comparison {
.mat-expansion-panel-header {
height: 140px;
height: 100%;
}
}

Loading…
Cancel
Save