Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function Layout({
/>
</div>

<div className="px-8 mb-8 flex-grow flex-shrink relative">{children}</div>
{/*not sure why, but safari needs a height here*/}
<div className="px-8 mb-8 md:h-0 flex-grow flex-shrink relative">
{children}
</div>

<ToastContainer
position="bottom-right"
Expand Down
20 changes: 9 additions & 11 deletions src/components/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,15 @@ function Preview({ markup, variant, forwardedRef, dispatch }) {

return (
<div className="w-full h-full flex flex-col relative">
<div className="flex-auto relative">
<iframe
ref={refSetter}
src="/sandbox.html"
security="restricted"
className="w-full h-full"
scrolling="no"
frameBorder="0"
onLoad={handleLoadIframe}
/>
</div>
<iframe
ref={refSetter}
src="/sandbox.html"
security="restricted"
className="flex-auto"
scrolling="no"
frameBorder="0"
onLoad={handleLoadIframe}
/>

{markup && variant !== 'minimal' && (
<PreviewHint roles={roles} suggestion={suggestion} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/QueryEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function QueryEditor(props) {
);

return (
<div className="flex flex-col w-full h-full relative">
<div className="flex flex-col w-full h-full">
<Editor
mode="javascript"
initialValue={initialValue}
Expand Down