File tree Expand file tree Collapse file tree
packages/docusaurus-theme-openapi/src/theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import clsx from "clsx";
1515
1616import styles from "./styles.module.css" ;
1717
18- let ApiDemoPanel = ( _ : { item : any } ) => < div /> ;
18+ let ApiDemoPanel = ( _ : { item : any } ) => < div style = { { marginTop : "3.5em" } } /> ;
1919if ( ExecutionEnvironment . canUseDOM ) {
2020 ApiDemoPanel = require ( "@theme/ApiDemoPanel" ) . default ;
2121}
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ function ApiPage(props: Props): JSX.Element {
179179
180180 // Override the current route path to the first page if it can't be found on the sidebar.
181181 const paths = getSidebarPaths ( { currentApiRoute, apiMetadata } ) ;
182- if ( ! paths . includes ( location . pathname ) ) {
182+ if ( ! paths . find ( ( path ) => matchPath ( location . pathname , path ) ) ) {
183183 currentApiRoute = {
184184 ...currentApiRoute ,
185185 path : paths [ 0 ] ,
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ html[data-theme="dark"] {
5858 display : flex;
5959}
6060
61- .apiPage {
61+ .apiPage ,
62+ .apiMainContainer {
6263 display : flex;
6364 width : 100% ;
6465}
You can’t perform that action at this time.
0 commit comments