Update public-api.mdx
This commit is contained in:
parent
c114ac8893
commit
d07d99951c
|
@ -2,10 +2,6 @@ import IframeResizer from "iframe-resizer-react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import Bleed from "nextra-theme-docs/bleed";
|
import Bleed from "nextra-theme-docs/bleed";
|
||||||
|
|
||||||
<!-- FIXME: We cannot use hooks in here ⬇ -->
|
|
||||||
|
|
||||||
import { useWindowSize } from "../lib/useWindowSize";
|
|
||||||
|
|
||||||
<Bleed full>
|
<Bleed full>
|
||||||
<Head />
|
<Head />
|
||||||
<IframeResizer
|
<IframeResizer
|
||||||
|
@ -13,8 +9,6 @@ import { useWindowSize } from "../lib/useWindowSize";
|
||||||
src={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://developer.cal.com"}
|
src={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://developer.cal.com"}
|
||||||
frameBorder="0"
|
frameBorder="0"
|
||||||
style={{
|
style={{
|
||||||
width: useWindowSize().width > 768 ? "calc(100vw - 16rem)" : "100vw",
|
|
||||||
minHeight: useWindowSize().width > 768 ? "100vh" : "200vh",
|
|
||||||
height: "auto",
|
height: "auto",
|
||||||
border: 0,
|
border: 0,
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user