Skip to content

Commit db043d3

Browse files
Merge pull request #452 from shapehq/enhancement/wrap-urls
Truncates links to specifications in Swagger UI
2 parents baa3b5b + 9626e30 commit db043d3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/features/docs/view/Swagger.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import SwaggerUI from "swagger-ui-react"
33
import "swagger-ui-react/swagger-ui.css"
44
import { Box } from "@mui/material"
55
import LoadingWrapper from "./LoadingWrapper"
6+
import "./swagger.css"
67

78
const Swagger = ({ url }: { url: string }) => {
89
const [isLoading, setLoading] = useState(true)

src/features/docs/view/swagger.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.swagger-ui .info span.url {
2+
display: block;
3+
text-overflow: ellipsis;
4+
overflow: hidden;
5+
max-width: 80%;
6+
}

0 commit comments

Comments
 (0)