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() {
1212 } , [ ] ) ;
1313
1414 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" >
1616 { state ?. status ? `${ state . status } ...` : "booting..." }
1717 </ div >
1818 ) ;
@@ -24,7 +24,7 @@ export default function Playground() {
2424 return (
2525 < Await resolve = { state . containerPromise } >
2626 { ( ) => (
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" >
2828 < div className = "flex flex-1" >
2929 < section className = "flex flex-1" >
3030 < style
@@ -59,7 +59,7 @@ function Preview() {
5959 } , [ ] ) ;
6060
6161 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" >
6363 { state ?. status
6464 ? state . status === "ready"
6565 ? "waiting for server..."
@@ -76,7 +76,11 @@ function Preview() {
7676 < React . Suspense fallback = { loadingState } >
7777 < Await resolve = { state . urlPromise } >
7878 { ( 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+ />
8084 ) }
8185 </ Await >
8286 </ React . Suspense >
Original file line number Diff line number Diff line change 2828 "@remix-run/react" : " 2.6.0" ,
2929 "@remix-run/v1-meta" : " 0.1.3" ,
3030 "@tailwindcss/aspect-ratio" : " ^0.4.2" ,
31- "@webcontainer/api" : " ^1.1.8 " ,
31+ "@webcontainer/api" : " ^1.1.9 " ,
3232 "cheerio" : " ^1.0.0-rc.12" ,
3333 "clsx" : " ^2.1.0" ,
3434 "compression" : " ^1.7.4" ,
You can’t perform that action at this time.
0 commit comments