Browse Source

datasource truncate fix

pull/12700/head
mpetrov 2 years ago
parent
commit
e7d14df44f
  1. 7
      ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.html
  2. 6
      ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.scss

7
ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.html

@ -33,7 +33,7 @@
<section class="datasource-field flex w-1/3 gap-2 xs:hidden"> <section class="datasource-field flex w-1/3 gap-2 xs:hidden">
@if (group.get('refEntityId')?.get('id')?.value) { @if (group.get('refEntityId')?.get('id')?.value) {
<ng-container [formGroup]="group.get('refEntityId')"> <ng-container [formGroup]="group.get('refEntityId')">
<mat-form-field appearance="outline" class="tb-inline-field flex-1" subscriptSizing="dynamic"> <mat-form-field appearance="outline" class="tb-inline-field w-1/2" subscriptSizing="dynamic">
<mat-select [value]="group.get('refEntityId').get('entityType').value" formControlName="entityType"> <mat-select [value]="group.get('refEntityId').get('entityType').value" formControlName="entityType">
<mat-option [value]="group.get('refEntityId').get('entityType').value"> <mat-option [value]="group.get('refEntityId').get('entityType').value">
{{ entityTypeTranslations.get(group.get('refEntityId').get('entityType').value)?.type | translate }} {{ entityTypeTranslations.get(group.get('refEntityId').get('entityType').value)?.type | translate }}
@ -41,12 +41,13 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<tb-entity-autocomplete <tb-entity-autocomplete
class="flex-1" class="entity-field w-1/2"
formControlName="id" formControlName="id"
[inlineField]="true" [inlineField]="true"
[hideLabel]="true" [hideLabel]="true"
[placeholder]="'action.set' | translate" [placeholder]="'action.set' | translate"
[entityType]="group.get('refEntityId').get('entityType').value"/> [entityType]="group.get('refEntityId').get('entityType').value"
/>
</ng-container> </ng-container>
} @else { } @else {
<mat-form-field appearance="outline" class="tb-inline-field flex-1" subscriptSizing="dynamic"> <mat-form-field appearance="outline" class="tb-inline-field flex-1" subscriptSizing="dynamic">

6
ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.scss

@ -40,9 +40,13 @@
} }
:host ::ng-deep { :host ::ng-deep {
.tb-inline-field { .entity-field {
a { a {
font-size: 14px; font-size: 14px;
white-space: nowrap;
display: block;
overflow: hidden;
text-overflow: ellipsis;
} }
} }

Loading…
Cancel
Save