Skip to content

Commit 5da72aa

Browse files
committed
changes to prevent the parameter description column from expanding (e.g. due to very long words in the content that cannot wrap). the new behaviour is that the long content just spills into the adjacent column.
1 parent 38f7416 commit 5da72aa

File tree

7 files changed

+30
-10
lines changed

7 files changed

+30
-10
lines changed

src/main/less/specs.less

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@
4444
table {
4545
border-collapse: collapse;
4646
border-spacing: 0;
47+
.param-name-col {
48+
width: 100px;
49+
max-width: 100px;
50+
}
51+
.param-value-col {
52+
width: 310px;
53+
max-width: 310px;
54+
}
55+
.param-description-col {
56+
width: 200px;
57+
max-width: 200px;
58+
}
59+
.param-type-col {
60+
width: 100px;
61+
max-width: 100px;
62+
}
63+
.param-data-type-col {
64+
width: 220px;
65+
max-width: 230px;
66+
}
4767
thead {
4868
tr {
4969
th {

src/main/template/operation.handlebars

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
<table class='fullwidth parameters'>
7373
<thead>
7474
<tr>
75-
<th style="width: 100px; max-width: 100px" data-sw-translate>Parameter</th>
76-
<th style="width: 310px; max-width: 310px" data-sw-translate>Value</th>
77-
<th style="width: 200px; max-width: 200px" data-sw-translate>Description</th>
78-
<th style="width: 100px; max-width: 100px" data-sw-translate>Parameter Type</th>
79-
<th style="width: 220px; max-width: 230px" data-sw-translate>Data Type</th>
75+
<th class="param-name-col" data-sw-translate>Parameter</th>
76+
<th class="param-value-col" data-sw-translate>Value</th>
77+
<th class="param-description-col" data-sw-translate>Description</th>
78+
<th class="param-type-col" data-sw-translate>Parameter Type</th>
79+
<th class="param-data-type-col" data-sw-translate>Data Type</th>
8080
</tr>
8181
</thead>
8282
<tbody class="operation-params">

src/main/template/param.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{/if}}
3030

3131
</td>
32-
<td class="markdown">{{{sanitize description}}}</td>
32+
<td class="markdown param-description-col">{{{sanitize description}}}</td>
3333
<td>{{{escape paramType}}}</td>
3434
<td>
3535
<span class="model-signature"></span>

src/main/template/param_list.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414

1515
</select>
1616
</td>
17-
<td class="markdown">{{#if required}}<strong>{{/if}}{{{description}}}{{#if required}}</strong>{{/if}}</td>
17+
<td class="markdown param-description-col">{{#if required}}<strong>{{/if}}{{{description}}}{{#if required}}</strong>{{/if}}</td>
1818
<td>{{{escape paramType}}}</td>
1919
<td><span class="model-signature"></span></td>

src/main/template/param_readonly.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
{{/if}}
1212
{{/if}}
1313
</td>
14-
<td class="markdown">{{{sanitize description}}}</td>
14+
<td class="markdown param-description-col">{{{sanitize description}}}</td>
1515
<td>{{{escape paramType}}}</td>
1616
<td><span class="model-signature"></span></td>

src/main/template/param_readonly_required.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
{{/if}}
1111
{{/if}}
1212
</td>
13-
<td class="markdown">{{{sanitize description}}}</td>
13+
<td class="markdown param-description-col">{{{sanitize description}}}</td>
1414
<td>{{{escape paramType}}}</td>
1515
<td><span class="model-signature"></span></td>

src/main/template/param_required.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{/if}}
2727
</td>
2828
<td>
29-
<strong><span class="markdown">{{{sanitize description}}}</span></strong>
29+
<strong><span class="markdown param-description-col">{{{sanitize description}}}</span></strong>
3030
</td>
3131
<td>{{{escape paramType}}}</td>
3232
<td><span class="model-signature"></span></td>

0 commit comments

Comments
 (0)