diff --git a/dist/css/print.css b/dist/css/print.css index f0d90689..8d6b9e29 100644 --- a/dist/css/print.css +++ b/dist/css/print.css @@ -1181,6 +1181,9 @@ .swagger-section .oauth_submit { text-align: center; } +.swagger-section .authorize-wrapper { + margin: 15px 0 10px; +} .swagger-section .authorize__btn:hover { text-decoration: underline; cursor: pointer; @@ -1203,7 +1206,7 @@ cursor: pointer; } .swagger-section .auth_container .key_input_container { - margin-bottom: 10px; + margin-bottom: 15px; } .swagger-section .auth_container .basic_auth_container { font-size: 0.9em; @@ -1232,6 +1235,10 @@ padding-left: 5px; padding-bottom: 5px; } +.swagger-section .api-popup-dialog .api-popup-content { + max-height: 500px; + overflow-y: auto; +} .swagger-section .api-popup-dialog .api-popup-authbtn { height: 30px; } diff --git a/dist/css/screen.css b/dist/css/screen.css index 3235151e..85c26738 100644 --- a/dist/css/screen.css +++ b/dist/css/screen.css @@ -1181,6 +1181,9 @@ .swagger-section .oauth_submit { text-align: center; } +.swagger-section .authorize-wrapper { + margin: 15px 0 10px; +} .swagger-section .authorize__btn:hover { text-decoration: underline; cursor: pointer; @@ -1203,7 +1206,7 @@ cursor: pointer; } .swagger-section .auth_container .key_input_container { - margin-bottom: 10px; + margin-bottom: 15px; } .swagger-section .auth_container .basic_auth_container { font-size: 0.9em; @@ -1232,6 +1235,10 @@ padding-left: 5px; padding-bottom: 5px; } +.swagger-section .api-popup-dialog .api-popup-content { + max-height: 500px; + overflow-y: auto; +} .swagger-section .api-popup-dialog .api-popup-authbtn { height: 30px; } diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js index 2baeb47e..74cbfada 100644 --- a/dist/swagger-ui.js +++ b/dist/swagger-ui.js @@ -8,13 +8,23 @@ this["Handlebars"]["templates"] = this["Handlebars"]["templates"] || {}; this["Handlebars"]["templates"]["apikey_button_view"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; - return "\n

').text('no content');
pre = $('').append(code);
- // JSON
+ // JSON
} else if (contentType === 'application/json' || /\+json$/.test(contentType)) {
var json = null;
try {
@@ -26015,35 +26044,35 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
code = $('').text(json);
pre = $('').append(code);
- // XML
+ // XML
} else if (contentType === 'application/xml' || /\+xml$/.test(contentType)) {
code = $('').text(this.formatXml(content));
pre = $('').append(code);
- // HTML
+ // HTML
} else if (contentType === 'text/html') {
code = $('').html(_.escape(content));
pre = $('').append(code);
- // Plain Text
+ // Plain Text
} else if (/text\/plain/.test(contentType)) {
code = $('').text(content);
pre = $('').append(code);
- // Image
+ // Image
} else if (/^image\//.test(contentType)) {
pre = $('