From 5da72aaa4df55080f915022b0f80d5ceb7e38798 Mon Sep 17 00:00:00 2001 From: Brock Anderson Date: Fri, 17 Feb 2017 16:23:20 -0800 Subject: [PATCH] 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. --- src/main/less/specs.less | 20 +++++++++++++++++++ src/main/template/operation.handlebars | 10 +++++----- src/main/template/param.handlebars | 2 +- src/main/template/param_list.handlebars | 2 +- src/main/template/param_readonly.handlebars | 2 +- .../param_readonly_required.handlebars | 2 +- src/main/template/param_required.handlebars | 2 +- 7 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/main/less/specs.less b/src/main/less/specs.less index 690e5c32..ebc4b160 100644 --- a/src/main/less/specs.less +++ b/src/main/less/specs.less @@ -44,6 +44,26 @@ table { border-collapse: collapse; border-spacing: 0; + .param-name-col { + width: 100px; + max-width: 100px; + } + .param-value-col { + width: 310px; + max-width: 310px; + } + .param-description-col { + width: 200px; + max-width: 200px; + } + .param-type-col { + width: 100px; + max-width: 100px; + } + .param-data-type-col { + width: 220px; + max-width: 230px; + } thead { tr { th { diff --git a/src/main/template/operation.handlebars b/src/main/template/operation.handlebars index 03260019..dd4bc9b3 100644 --- a/src/main/template/operation.handlebars +++ b/src/main/template/operation.handlebars @@ -72,11 +72,11 @@ - - - - - + + + + + diff --git a/src/main/template/param.handlebars b/src/main/template/param.handlebars index d52553b0..e38d53d2 100644 --- a/src/main/template/param.handlebars +++ b/src/main/template/param.handlebars @@ -29,7 +29,7 @@ {{/if}} - + - + diff --git a/src/main/template/param_readonly.handlebars b/src/main/template/param_readonly.handlebars index 02b00681..2e8f0a92 100644 --- a/src/main/template/param_readonly.handlebars +++ b/src/main/template/param_readonly.handlebars @@ -11,6 +11,6 @@ {{/if}} {{/if}} - + diff --git a/src/main/template/param_readonly_required.handlebars b/src/main/template/param_readonly_required.handlebars index 570cba2e..b619a1d2 100644 --- a/src/main/template/param_readonly_required.handlebars +++ b/src/main/template/param_readonly_required.handlebars @@ -10,6 +10,6 @@ {{/if}} {{/if}} - + diff --git a/src/main/template/param_required.handlebars b/src/main/template/param_required.handlebars index 6a2a2966..86755e0a 100644 --- a/src/main/template/param_required.handlebars +++ b/src/main/template/param_required.handlebars @@ -26,7 +26,7 @@ {{/if}}
ParameterValueDescriptionParameter TypeData TypeParameterValueDescriptionParameter TypeData Type
{{{sanitize description}}}{{{sanitize description}}} {{{escape paramType}}} diff --git a/src/main/template/param_list.handlebars b/src/main/template/param_list.handlebars index d81dca34..d685e3cb 100644 --- a/src/main/template/param_list.handlebars +++ b/src/main/template/param_list.handlebars @@ -14,6 +14,6 @@ {{#if required}}{{/if}}{{{description}}}{{#if required}}{{/if}}{{#if required}}{{/if}}{{{description}}}{{#if required}}{{/if}} {{{escape paramType}}} {{{sanitize description}}}{{{sanitize description}}} {{{escape paramType}}} {{{sanitize description}}}{{{sanitize description}}} {{{escape paramType}}} - {{{sanitize description}}} + {{{sanitize description}}} {{{escape paramType}}}