From b2695030f838ad1a8cc5b2bbedb52e7921e38421 Mon Sep 17 00:00:00 2001 From: Adrian Tam Date: Mon, 4 Dec 2023 16:49:15 -0500 Subject: [PATCH] chore: upgrade swagger-ui (#580) --- package-lock.json | 8 ++++---- package.json | 2 +- src/components/SwaggerUI/swagger-ui-override.css | 9 +++++++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index e8252aaae..dea72823f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "react-dom": "18.2.0", "react-feather": "2.0.10", "sanitize-html": "2.11.0", - "swagger-ui-react": "5.9.3" + "swagger-ui-react": "5.10.3" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.0.1", @@ -17164,9 +17164,9 @@ } }, "node_modules/swagger-ui-react": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-5.9.3.tgz", - "integrity": "sha512-4jVjVpbhn3EgAgOkKUiQcwZAlUsvX+2NXSY8c15MQ7iiBkwep0pC9i3I/4yw1DSmX5FSrqJZ4e0l7TI6ePdDiw==", + "version": "5.10.3", + "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-5.10.3.tgz", + "integrity": "sha512-AB/ko3xD76wyCFbfb5zihy8Gacg7Lz62umzcmBLC/+VN8twib4ayWNZ48lTRh6Kb9vitvEQCDM/4VS2uTwwy0w==", "dependencies": { "@babel/runtime-corejs3": "^7.23.2", "@braintree/sanitize-url": "=6.0.4", diff --git a/package.json b/package.json index e4eef7987..1d83d21ac 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "react-dom": "18.2.0", "react-feather": "2.0.10", "sanitize-html": "2.11.0", - "swagger-ui-react": "5.9.3" + "swagger-ui-react": "5.10.3" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.0.1", diff --git a/src/components/SwaggerUI/swagger-ui-override.css b/src/components/SwaggerUI/swagger-ui-override.css index 920025dc4..334bc54b6 100644 --- a/src/components/SwaggerUI/swagger-ui-override.css +++ b/src/components/SwaggerUI/swagger-ui-override.css @@ -7333,10 +7333,15 @@ .swagger-ui .opblock .opblock-summary-path { flex-shrink: 0; - max-width: calc(100% - 110px - 15rem); } } +.swagger-ui .opblock .opblock-summary-path-description-wrapper { + display: flex; + align-items: center; + flex-wrap: wrap; +} + .swagger-ui .opblock .opblock-summary-path__deprecated { text-decoration: line-through; } @@ -8074,8 +8079,8 @@ min-width: 180px; } } + .swagger-ui label { - color: #3b4151; font-size: 12px; font-weight: 700; margin: 0 0 5px;