Browse Source

Fixed table alignment

pull/15394/head
Maksym Tsymbarov 7 months ago
parent
commit
d1bcd2ecd4
  1. 9
      ui-ngx/src/app/modules/home/components/filter/filter-predicate-list.component.html
  2. 1
      ui-ngx/src/app/modules/home/components/filter/filter-predicate.component.html
  3. 2
      ui-ngx/src/app/modules/home/components/filter/filter-predicate.component.ts

9
ui-ngx/src/app/modules/home/components/filter/filter-predicate-list.component.html

@ -22,12 +22,11 @@
<div class="flex flex-full flex-row items-center justify-start gap-2"> <div class="flex flex-full flex-row items-center justify-start gap-2">
<div class="flex flex-1 flex-row pl-2"> <div class="flex flex-1 flex-row pl-2">
<label translate class="filter-title max-w-30% flex-full">filter.operation.operation</label> <label translate class="filter-title max-w-30% flex-full">filter.operation.operation</label>
<label translate class="filter-title max-w-[68%] flex-full">filter.value</label> <label translate class="filter-title max-w-70% flex-full">filter.value</label>
@if (displayUserParameters) {
<label translate class="filter-title max-w-[8%] flex-full">filter.user-parameters</label>
}
</div> </div>
<span [class.!hidden]="disabled" class="min-w-10">&nbsp;</span> @if (displayUserParameters) {
<span [class.!hidden]="disabled" class="min-w-12">&nbsp;</span>
}
</div> </div>
</div> </div>
<mat-divider style="padding-bottom: 5px;"></mat-divider> <mat-divider style="padding-bottom: 5px;"></mat-divider>

1
ui-ngx/src/app/modules/home/components/filter/filter-predicate.component.html

@ -78,6 +78,7 @@
<tb-filter-predicate-value <tb-filter-predicate-value
[allowUserDynamicSource]="allowUserDynamicSource" [allowUserDynamicSource]="allowUserDynamicSource"
[onlyUserDynamicSource]="onlyUserDynamicSource" [onlyUserDynamicSource]="onlyUserDynamicSource"
[operation]="filterPredicateFormGroup.get('operation').value"
class="max-w-70% flex-full" class="max-w-70% flex-full"
[valueType]="valueType" [valueType]="valueType"
formControlName="value"> formControlName="value">

2
ui-ngx/src/app/modules/home/components/filter/filter-predicate.component.ts

@ -155,7 +155,7 @@ export class FilterPredicateComponent implements ControlValueAccessor, Validator
type: this.type, type: this.type,
value: v.value, value: v.value,
operation: v.operation, operation: v.operation,
ignoreCase: v.ignoreCase ignoreCase: !!v.ignoreCase
} as KeyFilterPredicate; } as KeyFilterPredicate;
} }
predicate = { predicate = {

Loading…
Cancel
Save