From 13a90d15400ba38dceb08617d9c43d944475497e Mon Sep 17 00:00:00 2001 From: wll8 Date: Mon, 19 Jun 2023 14:06:14 +0800 Subject: [PATCH 1/2] fix: The last api shows an exception for the first time #26 This is due to insufficient scroll distance. --- try.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/try.js b/try.js index 3f447f5..dfc22c6 100644 --- a/try.js +++ b/try.js @@ -158,7 +158,10 @@ function initCss() { .swaggerBox:not(.onlySwagger) .opblock-body > .opblock-description-wrapper { display: none; } - + .swaggerBox:not(.onlySwagger) .block div>span:last-child .operation-tag-content>span:last-child { + display: block; + margin-bottom: 100vh; + } .swaggerBox .tryBtn { margin-right: 10px; background-color: #fff; From c460ed9dad8ddf1cdb914bafeb772bd1c445be96 Mon Sep 17 00:00:00 2001 From: wll8 Date: Mon, 19 Jun 2023 15:51:54 +0800 Subject: [PATCH 2/2] chore: updated version --- dist/try.js | 2 +- index.html | 2 +- package.json | 2 +- readme.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/try.js b/dist/try.js index e2d69ac..5237d8d 100644 --- a/dist/try.js +++ b/dist/try.js @@ -105,7 +105,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len } function initCss() { // reset swagger-ui css - $('head').append("\n \n "); + $('head').append("\n \n "); } function initSwagger(swaggerOptions) { // dom diff --git a/index.html b/index.html index b061cfb..ac43b4a 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ !window.initTryOptions.openApi && (delete window.initTryOptions.openApi); - + - +