mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5272] fe files upload form width is increasing if we upload file name too long (#7666)
* [ADF-5272] Add tooltip to show the entire filename * [ADF-5272] Set max-width to div that contains filename to show ellipsis
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
(keyup.enter)="onAttachFileClicked(file)"
|
(keyup.enter)="onAttachFileClicked(file)"
|
||||||
role="button"
|
role="button"
|
||||||
tabindex="0"/>
|
tabindex="0"/>
|
||||||
<span matLine id="{{'file-'+file.id}}" (click)="onAttachFileClicked(file)" (keyup.enter)="onAttachFileClicked(file)"
|
<span matLine id="{{'file-'+file.id}}" (click)="onAttachFileClicked(file)" [matTooltip]="file.name" (keyup.enter)="onAttachFileClicked(file)"
|
||||||
role="button" tabindex="0" class="adf-file">{{file.name}}</span>
|
role="button" tabindex="0" class="adf-file">{{file.name}}</span>
|
||||||
<button id="{{'file-'+file.id+'-option-menu'}}" mat-icon-button [matMenuTriggerFor]="fileActionMenu">
|
<button id="{{'file-'+file.id+'-option-menu'}}" mat-icon-button [matMenuTriggerFor]="fileActionMenu">
|
||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
|
@@ -67,5 +67,15 @@
|
|||||||
.mat-line {
|
.mat-line {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mat-list-text {
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 959px) {
|
||||||
|
.mat-list-text {
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user