Skip to content

Commit 9854c57

Browse files
aquaductapeMilo
authored andcommitted
fix-preview-iframe-height-when-devtools-disabled
1 parent f2a68b7 commit 9854c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/solid-repl/src/components/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export const Preview: Component<Props> = (props) => {
291291
});
292292
return (
293293
<div class="flex min-h-0 flex-1 flex-col" ref={outerContainer} classList={props.classList}>
294-
<div class="min-h-0 min-w-0" style={`flex: ${props.devtools ? iframeHeight() : 1};`}>
294+
<div class="min-h-0 min-w-0" style={`flex: ${props.devtools ? iframeHeight() : '1 1 100%'};`}>
295295
<iframe
296296
title="Solid REPL"
297297
class="dark:bg-other block h-full w-full overflow-scroll bg-white p-0"

0 commit comments

Comments
 (0)