Fix Chart UI Source Repository URL redner issue

1. When there are multiple source repos, the table should display multiple lines
2. Wrap text when url too long
This commit is contained in:
Deng, Qian 2018-08-06 17:20:36 +08:00
parent c04e752cf3
commit b52987bebd
2 changed files with 10 additions and 5 deletions

View File

@ -18,14 +18,15 @@
<tbody>
<tr>
<td class="left">{{'HELM_CHART.HOME' | translate }}</td>
<td class="left">
<td class="left text-wrappe">
<a href="{{summary.home}}">{{summary.home}}</a>
</td>
</tr>
<tr>
<td class="left">{{'HELM_CHART.SRC_REPO' | translate }}</td>
<td class="left">
<a href="{{summary.sources}}">{{summary.sources}}</a>
<tr *ngFor="let src of summary.sources; let i = index">
<td class="left" *ngIf="i === 0">{{'HELM_CHART.SRC_REPO' | translate }}</td>
<td class="left" *ngIf="i !== 0"></td>
<td class="left text-wrapper" >
<a href="{{src}}">{{src}}</a>
</td>
</tr>
<tr>

View File

@ -19,4 +19,8 @@
.content-icon {
margin-right: 6px;
}
.text-wrapper {
word-break: break-all;
}
}