Skip to content

Commit

Permalink
Fixes sizing of Stoplight viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Nov 29, 2023
1 parent 80657c3 commit 4dde838
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/features/docs/view/Stoplight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ const Stoplight = ({ url }: { url: string }) => {
}

const ResponsiveStoplight = ({ document }: { document: string }) => {

return (
<>
<Box sx={{
display: { xs: "block", sm: "none" },
width: "100%",
height: "100%",
padding: 2
}}>
<API
Expand All @@ -42,7 +43,9 @@ const ResponsiveStoplight = ({ document }: { document: string }) => {
/>
</Box>
<Box sx={{
display: { xs: "none", sm: "block" }
display: { xs: "none", sm: "block" },
width: "100%",
height: "100%",
}}>
<API
apiDescriptionDocument={document}
Expand Down

0 comments on commit 4dde838

Please sign in to comment.