RED-8647: added ellipsis for longer primary attributes values.
This commit is contained in:
parent
64a1f1f41b
commit
8ca9de3c8d
@ -11,6 +11,7 @@
|
|||||||
<b *ngIf="mode === 'workflow' && !isInEditMode"> {{ fileAttribute.label }}: </b>
|
<b *ngIf="mode === 'workflow' && !isInEditMode"> {{ fileAttribute.label }}: </b>
|
||||||
<span
|
<span
|
||||||
*ngIf="!isDate; else date"
|
*ngIf="!isDate; else date"
|
||||||
|
[style.max-width]="attributeValueWidth"
|
||||||
[matTooltip]="fileAttributeValue"
|
[matTooltip]="fileAttributeValue"
|
||||||
[ngClass]="{ hide: isInEditMode, 'clamp-3': mode !== 'workflow' }"
|
[ngClass]="{ hide: isInEditMode, 'clamp-3': mode !== 'workflow' }"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -28,6 +28,15 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
|
width: 90%;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: inline-block;
|
||||||
|
word-break: unset;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
mat-icon {
|
mat-icon {
|
||||||
min-width: 12px;
|
min-width: 12px;
|
||||||
|
|||||||
@ -70,6 +70,10 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr
|
|||||||
return this.width ? `${this.width * this.#widthFactor}px` : 'unset';
|
return this.width ? `${this.width * this.#widthFactor}px` : 'unset';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get attributeValueWidth(): string {
|
||||||
|
return this.width ? `${this.width * 0.9}px` : 'unset';
|
||||||
|
}
|
||||||
|
|
||||||
get isDate(): boolean {
|
get isDate(): boolean {
|
||||||
return this.fileAttribute.type === FileAttributeConfigTypes.DATE;
|
return this.fileAttribute.type === FileAttributeConfigTypes.DATE;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user