Code sample ui fix

This commit is contained in:
Roman Hotsiy 2016-02-01 14:54:58 +02:00
parent acd3b9bfdc
commit 860eb30c48
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<header *ngIf="data.bodySchemaPtr || data.samples.length"> Request samples </header> <header *ngIf="data.bodySchemaPtr || data.samples.length"> Request samples </header>
<schema-sample *ngIf="!data.samples.length" [pointer]="data.bodySchemaPtr"> </schema-sample> <schema-sample *ngIf="!data.samples.length" [pointer]="data.bodySchemaPtr"> </schema-sample>
<tabs *ngIf="data.samples.length"> <tabs *ngIf="data.samples.length">
<tab tabTitle="json"> <tab tabTitle="JSON">
<schema-sample [pointer]="data.bodySchemaPtr"> </schema-sample> <schema-sample [pointer]="data.bodySchemaPtr"> </schema-sample>
</tab> </tab>
<tab *ngFor="#sample of data.samples" [tabTitle]="sample.lang"> <tab *ngFor="#sample of data.samples" [tabTitle]="sample.lang">

View File

@ -11,7 +11,7 @@ header {
:host > tabs > ul li { :host > tabs > ul li {
font-size: 13px; font-size: 13px;
margin: 2px 0; margin: 2px 0;
padding: 2px 10px; padding: 2px 5px;
color: #8A9094; color: #8A9094;
line-height: 1.25; line-height: 1.25;
color: $sample-panel-headers-color; color: $sample-panel-headers-color;
@ -28,4 +28,7 @@ header {
pre { pre {
overflow-x: auto; overflow-x: auto;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
} }