Skip to content

Commit

Permalink
Use markdown for response description (fixes #158)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Dec 13, 2016
1 parent a378684 commit bba3533
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/components/ResponsesList/responses-list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2 class="responses-list-header" *ngIf="responses.length"> Responses </h2>
<zippy *ngFor="let response of responses;trackBy:trackByCode" title="{{response.code}} {{response.description || marked}}"
<zippy *ngFor="let response of responses;trackBy:trackByCode" [title]="response.code + ' ' + response.description | marked"
[type]="response.type" [empty]="response.empty" (open)="lazySchema.load()">
<div *ngIf="response.headers" class="response-headers">
<header>
Expand Down
2 changes: 1 addition & 1 deletion lib/shared/components/Zippy/zippy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "/>
</svg>
</span>
{{title}}
<span class="zippy-title-content" [innerHtml]="title"> </span>
</div>
<div class="zippy-content">
<ng-content></ng-content>
Expand Down
8 changes: 7 additions & 1 deletion lib/shared/components/Zippy/zippy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ $zippy-redirect-bg-color: rgba($zippy-redirect-color, .08);
color: $zippy-info-color;
background-color: $zippy-info-bg-color;
}

/deep/ p {
font-weight: normal;
}
}

.zippy-indicator svg {
height: 1.2em;
vertical-align: middle;
vertical-align: top;
transition: all 0.3s ease;
transform: rotateZ(-180deg);
}
Expand Down Expand Up @@ -81,6 +85,8 @@ span.zippy-indicator {
font-size: 1.2em;
text-align: center;
display: inline-block;
float: left;
margin-right: 5px;
}

.zippy-content {
Expand Down

0 comments on commit bba3533

Please sign in to comment.