Skip to content

Commit

Permalink
fix: overflow on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 9, 2024
1 parent 2fdc8ab commit dca1841
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/preview/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,29 +345,35 @@ async function Devtools(props: DevtoolsProps) {
gap: '10px',
gridTemplateColumns: 'repeat(2, minmax(0,1fr))',
maxWidth: '1200px',
maxHeight: '48vh',
}}
>
<pre
style={{
fontFamily: 'monospace',
overflow: 'auto',
padding: '0.5rem',
}}
>
<div style={headerStyle}>Current</div>
<div dangerouslySetInnerHTML={{ __html: contextHtml }} />
<div
dangerouslySetInnerHTML={{ __html: contextHtml }}
style={{
maxHeight: '48vh',
overflow: 'auto',
}}
/>
</pre>
<pre
style={{
fontFamily: 'monospace',
overflow: 'auto',
borderLeftWidth: '1px',
padding: '0.5rem',
}}
>
<div style={headerStyle}>Previous</div>
<div dangerouslySetInnerHTML={{ __html: previousContextHtml }} />
<div
dangerouslySetInnerHTML={{ __html: previousContextHtml }}
style={{ maxHeight: '48vh', overflow: 'auto' }}
/>
</pre>
</div>

Expand Down

0 comments on commit dca1841

Please sign in to comment.