@@ -80,11 +80,12 @@ export function TileLayout({ mode, children }: TileLayoutProps) {
8080 return (
8181 < div className = "pointer-events-none fixed inset-x-0 top-8 bottom-32 z-50 md:top-12 md:bottom-40" >
8282 < div className = "relative mx-auto h-full px-4 md:px-8" >
83- < div className = "flex h-full items-center justify-center" >
84- < div className = "flex flex-col items-center gap-4" >
83+ < div className = "flex h-full items-start justify-center pt-8 md:pt-12 " >
84+ < div className = "flex flex-col items-center gap-4 max-h-full " >
8585 < div
8686 className = { cn (
8787 'border-border/50 rounded-3xl border p-6 transition-colors duration-500' ,
88+ 'max-h-[calc(100%-5rem)]' ,
8889 getBackgroundColor ( )
8990 ) }
9091 >
@@ -105,12 +106,9 @@ export function TileLayout({ mode, children }: TileLayoutProps) {
105106 scale : 1 ,
106107 } }
107108 transition = { ANIMATION_TRANSITION }
108- style = { {
109- width : VIDEO_DIMENSIONS . width ,
110- height : VIDEO_DIMENSIONS . height ,
111- } }
112109 className = { cn (
113110 'bg-background rounded-lg border-4 drop-shadow-xl transition-colors' ,
111+ 'h-[min(400px,calc(100vh-20rem))] md:h-[min(480px,calc(100vh-24rem))] w-auto aspect-[3/4]' ,
114112 getBorderColor ( )
115113 ) }
116114 >
@@ -158,12 +156,9 @@ export function TileLayout({ mode, children }: TileLayoutProps) {
158156 duration : 1 ,
159157 } ,
160158 } }
161- style = { {
162- width : VIDEO_DIMENSIONS . width ,
163- height : VIDEO_DIMENSIONS . height ,
164- } }
165159 className = { cn (
166160 'overflow-hidden border-4 bg-black drop-shadow-xl transition-colors' ,
161+ 'h-[min(400px,calc(100vh-20rem))] md:h-[min(480px,calc(100vh-24rem))] w-auto aspect-[3/4]' ,
167162 getBorderColor ( )
168163 ) }
169164 >
@@ -198,12 +193,9 @@ export function TileLayout({ mode, children }: TileLayoutProps) {
198193 scale : 0 ,
199194 } }
200195 transition = { ANIMATION_TRANSITION }
201- style = { {
202- width : VIDEO_DIMENSIONS . width ,
203- height : VIDEO_DIMENSIONS . height ,
204- } }
205196 className = { cn (
206197 'bg-muted overflow-hidden rounded-lg border-4 drop-shadow-xl transition-colors' ,
198+ 'h-[min(400px,calc(100vh-20rem))] md:h-[min(480px,calc(100vh-24rem))] w-auto aspect-[3/4]' ,
207199 getBorderColor ( )
208200 ) }
209201 >
@@ -232,7 +224,7 @@ export function TileLayout({ mode, children }: TileLayoutProps) {
232224
233225 { /* Timer and button controls */ }
234226 { children && (
235- < div className = "pointer-events-auto flex w-full max-w-[850px] items-center justify-between px-2" >
227+ < div className = "pointer-events-auto flex w-full max-w-[850px] items-center justify-between gap-4 px-2" >
236228 { children }
237229 </ div >
238230 ) }
0 commit comments