mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 09:34:07 +03:00
Code sample ui fix
This commit is contained in:
parent
acd3b9bfdc
commit
860eb30c48
|
@ -1,7 +1,7 @@
|
|||
<header *ngIf="data.bodySchemaPtr || data.samples.length"> Request samples </header>
|
||||
<schema-sample *ngIf="!data.samples.length" [pointer]="data.bodySchemaPtr"> </schema-sample>
|
||||
<tabs *ngIf="data.samples.length">
|
||||
<tab tabTitle="json">
|
||||
<tab tabTitle="JSON">
|
||||
<schema-sample [pointer]="data.bodySchemaPtr"> </schema-sample>
|
||||
</tab>
|
||||
<tab *ngFor="#sample of data.samples" [tabTitle]="sample.lang">
|
||||
|
|
|
@ -11,7 +11,7 @@ header {
|
|||
:host > tabs > ul li {
|
||||
font-size: 13px;
|
||||
margin: 2px 0;
|
||||
padding: 2px 10px;
|
||||
padding: 2px 5px;
|
||||
color: #8A9094;
|
||||
line-height: 1.25;
|
||||
color: $sample-panel-headers-color;
|
||||
|
@ -28,4 +28,7 @@ header {
|
|||
|
||||
pre {
|
||||
overflow-x: auto;
|
||||
word-break: break-all;
|
||||
word-wrap: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user