@@ -16,11 +16,9 @@ export default function CookieBanner() {
1616 const hasChoice = localStorage . getItem ( STORAGE_KEY ) !== null ;
1717 if ( ! hasChoice ) setVisible ( true ) ;
1818 } catch {
19- // SSR / restricted storage: keep banner visible by default
2019 setVisible ( true ) ;
2120 }
2221
23- // expose reopen API
2422 ( window as any ) . showCookieBanner = ( ) => setVisible ( true ) ;
2523 } , [ ] ) ;
2624
@@ -39,7 +37,6 @@ export default function CookieBanner() {
3937 return true ;
4038 } ;
4139 if ( ! call ( ) ) {
42- // retry for up to ~8s while gtag loads
4340 let tries = 0 ;
4441 const t = setInterval ( ( ) => {
4542 tries ++ ;
@@ -66,7 +63,7 @@ export default function CookieBanner() {
6663 aria-label = "Cookie notice"
6764 className = "fixed left-1/2 -translate-x-1/2 bottom-4 z-50 w-[min(720px,calc(100%-1.5rem))] rounded-xl border border-border bg-secondary text-secondary-foreground shadow-xl"
6865 >
69- < div className = "flex items-start gap-3 p-3" >
66+ < div className = "flex flex-col gap-3 p-3" >
7067 < p className = "text-sm leading-snug" >
7168 We use cookies for < strong > analytics</ strong > only. Ads & personalization are off by
7269 default . Choose < em > Accept</ em > to enable analytics or < em > Reject</ em > to continue with
@@ -76,7 +73,7 @@ export default function CookieBanner() {
7673 </ a >
7774 .
7875 </ p >
79- < div className = "ml-auto flex shrink-0 gap-2" >
76+ < div className = "flex justify-end gap-2" >
8077 < button
8178 onClick = { ( ) => choose ( "reject" ) }
8279 className = "inline-flex items-center rounded-md border border-border px-3 py-1.5 text-sm font-medium hover:bg-muted"
0 commit comments