mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 01:37:32 +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>
 | 
					<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">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user