Merge pull request #11007 from maxunbearable/fix/3645-template-name-width
Added max width to the display of the template name
This commit is contained in:
commit
ecba0540a2
@ -18,8 +18,8 @@
|
|||||||
<div class="mat-subtitle-1 title">{{ 'gateway.rpc.templates-title' | translate }}</div>
|
<div class="mat-subtitle-1 title">{{ 'gateway.rpc.templates-title' | translate }}</div>
|
||||||
<mat-expansion-panel hideToggle *ngFor="let template of rpcTemplates">
|
<mat-expansion-panel hideToggle *ngFor="let template of rpcTemplates">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title>
|
<mat-panel-title class="template-name">
|
||||||
{{template.name}}
|
<span matTooltip="{{template.name}}" matTooltipPosition="above">{{template.name}}</span>
|
||||||
</mat-panel-title>
|
</mat-panel-title>
|
||||||
<mat-panel-description>
|
<mat-panel-description>
|
||||||
<button mat-icon-button matTooltip="Delete" (click)="deleteTemplate($event, template)">
|
<button mat-icon-button matTooltip="Delete" (click)="deleteTemplate($event, template)">
|
||||||
|
|||||||
@ -59,6 +59,7 @@
|
|||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
flex: 0;
|
||||||
|
|
||||||
& > mat-icon {
|
& > mat-icon {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
@ -89,6 +90,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.template-name {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
::ng-deep .mat-content {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-expansion-panel-header-title {
|
||||||
|
flex: 1;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user