Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[DATALAB-2274] added hints for actions description on audit page #1062

Merged
merged 1 commit into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,15 @@ export class AuditGridComponent implements OnInit {
</div>
</div>
<div class="info-item-data" [ngClass]="{'same-column-width': data.dialogSize === 'small'}" *ngIf="action[0] !== 'File(s)'">
<div *ngFor="let description of action[1]?.split(',')">{{description}}</div>
<div
*ngFor="let description of action[1]?.split(',')"
[matTooltip]="description"
class="ellipsis"
[ngStyle]="description.length < 20 ? {'width' :'fit-content'} : {'width':'100%'}"
matTooltipPosition="above"
matTooltipClass="mat-tooltip-description">
{{description}}
</div>
</div>
</mat-list-item>
</div>
Expand Down Expand Up @@ -280,7 +288,7 @@ export class AuditGridComponent implements OnInit {
.info-item-title{width: 40%; padding: 10px 0;font-size: 14px;}
.info-item-quota{width: 30%; padding: 10px 0;font-size: 14px;}
.list-header {padding-top: 5px;}
.info-item-data{width: 60%; text-align: left; padding: 10px 0; font-size: 14px;}
.info-item-data{width: 60%; text-align: left; padding: 10px 0; font-size: 14px; cursor: default;}
.file-description{ overflow: hidden; display: block; direction: rtl; font-size: 14px;}
.same-column-width{width: 50%; padding: 10px 0; font-size: 14px;}
`]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,7 @@ input[type='number'] {
overflow: hidden;
text-overflow: ellipsis;
}

.mat-tooltip-description {
overflow-wrap: break-word;
}