File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ export const Preview: FC = () => {
55
55
const link = document . createElement ( "a" ) ;
56
56
link . href = url ;
57
57
link . download = "output.json" ;
58
- document . appendChild ( link ) ;
58
+ document . body . appendChild ( link ) ;
59
59
link . click ( ) ;
60
- document . removeChild ( link ) ;
60
+ document . body . removeChild ( link ) ;
61
61
62
62
// Give the click event enough time to fire and then revoke the URL.
63
63
// This method of doing it doesn't seem great but I'm not sure if there is a
@@ -393,9 +393,6 @@ const Debugger: FC<DebuggerProps> = ({ output }) => {
393
393
src = { output ?? { } }
394
394
collapsed = { 1 }
395
395
theme = { appliedTheme === "dark" ? "brewer" : "rjv-default" }
396
- style = { {
397
- background : "inherit" ,
398
- } }
399
396
/>
400
397
</ div >
401
398
</ ResizablePanel >
@@ -488,9 +485,9 @@ const Log: FC<LogProps> = ({ log }) => {
488
485
className = "fixed top-0 right-0 z-20 flex h-full w-full max-w-md flex-col justify-start gap-6 border-l bg-surface-primary p-4"
489
486
>
490
487
< div className = "flex items-center justify-between" >
491
- < p className = "font-semibold text-2xl text-content-primary" >
488
+ < Dialog . Title className = "font-semibold text-2xl text-content-primary" >
492
489
Log
493
- </ p >
490
+ </ Dialog . Title >
494
491
< Dialog . Close asChild = { true } >
495
492
< Button
496
493
variant = "outline"
You can’t perform that action at this time.
0 commit comments