Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit 0c94819

Browse files
committed
fixes alignment of text elements in api-method-form component table
1 parent e06f0fc commit 0c94819

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/api-method-form/api-method-form.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import { Parameter, Type, Types } from '../../schema/2.0/swagger.schema';
2828
<td colspan="5" class="text-center">No parameters</td>
2929
</tr>
3030
<tr *ngFor="let parameter of parameters">
31-
<td *ngIf="!parameter.required">{{parameter.name}}</td>
32-
<td *ngIf="parameter.required"><strong>{{parameter.name}}</strong></td>
31+
<td *ngIf="!parameter.required"><p class="form-control-static">{{parameter.name}}</p></td>
32+
<td *ngIf="parameter.required"><p class="form-control-static"><strong>{{parameter.name}}</strong></p></td>
3333
<td>
3434
<api-method-form-control [form]="requestForm" [parameter]="parameter"></api-method-form-control>
3535
</td>
36-
<td *ngIf="!parameter.required">{{parameter.description}}</td>
37-
<td *ngIf="parameter.required"><strong>{{parameter.description}}</strong></td>
38-
<td>{{parameter.in}}</td>
39-
<td *ngIf="parameter.type">{{parameter.type}}</td>
36+
<td *ngIf="!parameter.required"><p class="form-control-static">{{parameter.description}}</p></td>
37+
<td *ngIf="parameter.required"><p class="form-control-static"><strong>{{parameter.description}}</strong></p></td>
38+
<td><p class="form-control-static">{{parameter.in}}</p></td>
39+
<td *ngIf="parameter.type"><p class="form-control-static">{{parameter.type}}</p></td>
4040
<td *ngIf="parameter.schema">
4141
<api-model [schema]="parameter.schema"></api-model>
4242
</td>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swangular-components",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Swagger UI components written in angular 2",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)