Fix some layout issue in chart detail page

Refine the layout in chart detail page.
This commit is contained in:
Mia ZHOU 2018-08-07 12:25:37 +08:00
parent 8c6df84b86
commit 207cf384af
4 changed files with 43 additions and 33 deletions

View File

@ -3,12 +3,11 @@
<p>{{summary.description}}</p>
</div>
</div>
<div class="row">
<div class="row content-wrapper">
<div class="col-md-8 md-container">
<div *ngIf="readme" class="md-div" [innerHTML]="readme | markdown"></div>
<div *ngIf="!readme">{{'HELM_CHART.NO_README' | translate}}</div>
</div>
<div class="col-md-4 summary-container">
<div class="col-md-12 content-group">
<div>

View File

@ -1,26 +1,28 @@
.md-container {
margin-top: 15px;
border: solid 1px #DDDDDD;
padding: 3px;
}
.content-wrapper {
margin-top:20px;
padding: 0 0 0 15px;
.summary-container {
margin-top: 15px;
table {
background-color: #F2F2F2;
margin-top: 0.5rem;
}
.content-group {
margin-bottom: 30px;
.md-container {
border: solid 1px #ddd;
}
.content-icon {
margin-right: 6px;
}
.text-wrapper {
word-break: break-all;
.summary-container {
padding:0;
table {
background-color: #F2F2F2;
margin-top: 0.5rem;
}
.content-group {
margin-bottom: 30px;
}
.content-icon {
margin-right: 6px;
}
.text-wrapper {
word-break: break-all;
}
}
}

View File

@ -1,16 +1,14 @@
<div>
<div class="row flex-items-xs-between">
<div class="col-xs-4">
<div class="title-container">
<div class="chart-name">
{{chartNameWithVersion | translate}}
</div>
<div>
{{roleName | translate}}
</div>
<div class="flex-container">
<div class="title-container">
<div class="chart-name">
{{chartNameWithVersion | translate}}
</div>
<div>
{{roleName | translate}}
</div>
</div>
<div class="col-xs-1">
<div>
<button class="btn btn-sm btn-secondary"
(click)="downloadChart()">{{'HELM_CHART.DOWNLOAD' | translate}}</button>
</div>

View File

@ -13,4 +13,15 @@
.detail-loading {
@include absolute-center;
}
.flex-container {
display: flex;
-webkit-display:flex;
justify-content: space-between;
.title-container {
display: flex;
align-items:center;
}
}