mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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}}
|
||||||
|
@@ -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>
|
||||||
|
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user