File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function Playground() {
12
12
} , [ ] ) ;
13
13
14
14
const loadingState = (
15
- < div className = "w-full h-full flex items-center justify-center" >
15
+ < div className = "flex h-full w-full items-center justify-center" >
16
16
{ state ?. status ? `${ state . status } ...` : "booting..." }
17
17
</ div >
18
18
) ;
@@ -24,7 +24,7 @@ export default function Playground() {
24
24
return (
25
25
< Await resolve = { state . containerPromise } >
26
26
{ ( ) => (
27
- < div className = "flex flex-1 m-auto w-[90rem] max-w-full px-4 sm:px-6 lg:px-8" >
27
+ < div className = "m-auto flex w-[90rem] max-w-full flex-1 px-4 sm:px-6 lg:px-8" >
28
28
< div className = "flex flex-1" >
29
29
< section className = "flex flex-1" >
30
30
< style
@@ -59,7 +59,7 @@ function Preview() {
59
59
} , [ ] ) ;
60
60
61
61
const loadingState = (
62
- < div className = "w-full h-full flex items-center justify-center" >
62
+ < div className = "flex h-full w-full items-center justify-center" >
63
63
{ state ?. status
64
64
? state . status === "ready"
65
65
? "waiting for server..."
@@ -76,7 +76,11 @@ function Preview() {
76
76
< React . Suspense fallback = { loadingState } >
77
77
< Await resolve = { state . urlPromise } >
78
78
{ ( url ) => (
79
- < iframe className = "bg-white w-full h-full border" src = { url } />
79
+ < iframe
80
+ className = "h-full w-full border bg-white"
81
+ src = { url }
82
+ title = "Remix preview"
83
+ />
80
84
) }
81
85
</ Await >
82
86
</ React . Suspense >
Original file line number Diff line number Diff line change 28
28
"@remix-run/react" : " 2.6.0" ,
29
29
"@remix-run/v1-meta" : " 0.1.3" ,
30
30
"@tailwindcss/aspect-ratio" : " ^0.4.2" ,
31
- "@webcontainer/api" : " ^1.1.8 " ,
31
+ "@webcontainer/api" : " ^1.1.9 " ,
32
32
"cheerio" : " ^1.0.0-rc.12" ,
33
33
"clsx" : " ^2.1.0" ,
34
34
"compression" : " ^1.7.4" ,
You can’t perform that action at this time.
0 commit comments