diff --git a/frontend/public/embed.css b/frontend/public/embed.css index fbcc5914..f4642bdd 100644 --- a/frontend/public/embed.css +++ b/frontend/public/embed.css @@ -11,6 +11,11 @@ html, body { margin: 0; padding: 0; + /* The embed route is meant to render transparently inside a host page's + iframe. It still inherits the root layout's /
, whose + globals.css sets an opaque gradient background — override it here so + the widget doesn't show a solid background box in embeds. */ + background: transparent !important; } .w-full { diff --git a/frontend/src/app/embed/[username]/page.tsx b/frontend/src/app/embed/[username]/page.tsx index c4bd771f..d4c4b233 100644 --- a/frontend/src/app/embed/[username]/page.tsx +++ b/frontend/src/app/embed/[username]/page.tsx @@ -62,6 +62,7 @@ export async function generateMetadata({ params }: { params: { username: string return { title: `Support ${profile.displayName} — NovaSupport`, robots: { index: false, follow: false }, + viewport: "width=device-width, initial-scale=1", }; } @@ -92,34 +93,27 @@ export default async function EmbedPage({ params, searchParams }: PageProps) { })); return ( - - - - - - - - -