fix: Cookie banner closeable + sidebar accessible while banner is open

- X button to close banner (SDK admin context only)
- Overlay leaves sidebar area accessible (ml-16/ml-64)
- Click overlay backdrop to dismiss
- Preview page: close banner on API error (don't trap user)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-03 09:08:05 +02:00
parent 6af35dbf5f
commit a1272390ff
2 changed files with 13 additions and 3 deletions
@@ -106,6 +106,8 @@ export default function CookieBannerPreviewPage() {
setShowBanner(false)
} catch (err: any) {
setApiResult({ error: err.message })
// Close banner even on error — don't trap the user
setShowBanner(false)
}
setSaving(false)
}, [ewrOnly, fingerprint])