From a91490f1efa201bad77a2d55dd11b3707cf86fdd Mon Sep 17 00:00:00 2001 From: Jesse Bonzo <97121974+jbonzohln@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:16:14 -0700 Subject: [PATCH] Update openapi index.css (#4556) * Update index.css Fixes https://github.com/hapifhir/hapi-fhir/issues/4555 * Add changelog --------- Co-authored-by: James Agnew --- .../uhn/hapi/fhir/changelog/7_4_0/4556-openapi-css.yaml | 6 ++++++ .../src/main/resources/ca/uhn/fhir/rest/openapi/index.css | 8 ++++++-- pom.xml | 4 ++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_4_0/4556-openapi-css.yaml diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_4_0/4556-openapi-css.yaml b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_4_0/4556-openapi-css.yaml new file mode 100644 index 00000000000..ee381ec204e --- /dev/null +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_4_0/4556-openapi-css.yaml @@ -0,0 +1,6 @@ +--- +type: fix +issue: 4556 +title: "The CSS file used by the OpenApiInterceptor to serve up the Swagger UI + component inadvertently blocked the authorization button evem when it was + wanted. This has been fixed. Thanks Jesse Bonzo for the contribution!" diff --git a/hapi-fhir-server-openapi/src/main/resources/ca/uhn/fhir/rest/openapi/index.css b/hapi-fhir-server-openapi/src/main/resources/ca/uhn/fhir/rest/openapi/index.css index c7b99216bc4..131ef859d0b 100644 --- a/hapi-fhir-server-openapi/src/main/resources/ca/uhn/fhir/rest/openapi/index.css +++ b/hapi-fhir-server-openapi/src/main/resources/ca/uhn/fhir/rest/openapi/index.css @@ -141,6 +141,10 @@ body } /* Disable the servers dropdown, which is useless here */ -.swagger-ui .scheme-container { - display: none; +.swagger-ui .scheme-container .servers-title { + display: none; +} + +.swagger-ui .scheme-container .servers { + display: none; } diff --git a/pom.xml b/pom.xml index deb48482f14..aaf265b0408 100644 --- a/pom.xml +++ b/pom.xml @@ -905,6 +905,10 @@ pano-smals pano-smals + + jbonzohln + Jesse Bonzo +