[AAE-2478] Long task title show ellipsis when too long and add tool tip to task title inside form (#5704)

* [AAE-2478] Keep long task title on one line with ellipsis

* [AAE-2478] Add tool tip to task title inside form

* [create preview]

* Update form.component.html

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
This commit is contained in:
Baptiste Mahé
2020-05-22 10:36:31 +02:00
committed by GitHub
parent 1f0a5ac87c
commit 7a6a86e27e
4 changed files with 11 additions and 7 deletions

View File

@@ -40,10 +40,18 @@
& .mat-form-field-wrapper { & .mat-form-field-wrapper {
margin: 0 12px 0 0; margin: 0 12px 0 0;
} }
& h4 {
margin-right: 55px;
display: grid;
}
} }
&-form-title { &-form-title {
font-size: mat-font-size($alfresco-typography, title); font-size: mat-font-size($alfresco-typography, title);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
&-form-debug-container { &-form-debug-container {
@@ -125,3 +133,4 @@
} }
} }

View File

@@ -20,7 +20,7 @@
<mat-icon>refresh</mat-icon> <mat-icon>refresh</mat-icon>
</button> </button>
</div> </div>
<span *ngIf="isTitleEnabled()" class="adf-form-title"> <span *ngIf="isTitleEnabled()" class="adf-form-title" [matTooltip]="form.taskName">
{{form.taskName}} {{form.taskName}}
<ng-container *ngIf="!form.taskName"> <ng-container *ngIf="!form.taskName">
{{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}} {{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}}

View File

@@ -20,13 +20,12 @@
<mat-icon>refresh</mat-icon> <mat-icon>refresh</mat-icon>
</button> </button>
</div> </div>
<span *ngIf="isTitleEnabled()" class="adf-form-title"> <span *ngIf="isTitleEnabled()" class="adf-form-title" [matTooltip]="form.taskName">
{{form.taskName}} {{form.taskName}}
<ng-container *ngIf="!form.taskName"> <ng-container *ngIf="!form.taskName">
{{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}} {{'FORM.FORM_RENDERER.NAMELESS_TASK' | translate}}
</ng-container> </ng-container>
</span> </span>
</h4> </h4>
</mat-card-title> </mat-card-title>
</mat-card-header> </mat-card-header>

View File

@@ -38,10 +38,6 @@
& .mat-form-field-wrapper { & .mat-form-field-wrapper {
margin: 0 12px 0 0; margin: 0 12px 0 0;
} }
h4 {
margin-right: 55px;
}
} }
&-form-title { &-form-title {