Merge pull request #1376 from GNS3/bugfix/1372

resolve Uploaded images with long names get truncated in image manage…
This commit is contained in:
Jeremy Grossmann 2022-08-08 23:51:44 +02:00 committed by GitHub
commit a143f0d037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -32,7 +32,9 @@ export class ExportPortableProjectComponent implements OnInit {
async ngOnInit() {
this.controller = this.data.controllerDetails;
this.project = this.data.projectDetails;
this.fileName = this.project.name + '.gns3project';
if( this.project){
this.fileName = this.project.name + '.gns3project';
}
await this.formControls();
this.compression_methods = this.projectService.getCompression();
this.compression_level = this.projectService.getCompressionLevel();

View File

@ -36,7 +36,7 @@
<ng-container matColumnDef="filename">
<mat-header-cell *matHeaderCellDef> File Name </mat-header-cell>
<mat-cell *matCellDef="let row">
<a class="table-link">{{ row.filename }}</a>
<mat-list-item role="listitem">{{ row.filename }}</mat-list-item>
</mat-cell>
</ng-container>

View File

@ -13,5 +13,12 @@
mat-header-cell, mat-cell {
justify-content: center;
}
mat-cell, mat-header-cell, mat-footer-cell {
flex: 1;
display: flex;
align-items: center;
overflow: initial;
min-height: inherit;
}