From 7f35d792b2bb63fa507cf44ac86a70bbc5c10f9a Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Thu, 21 May 2026 18:15:00 +0200 Subject: [PATCH] fix: load globals.css and Geist font in plugin sandbox iframe --- app/(sandbox)/layout.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/(sandbox)/layout.tsx b/app/(sandbox)/layout.tsx index 8c1f20d4..9813c79d 100644 --- a/app/(sandbox)/layout.tsx +++ b/app/(sandbox)/layout.tsx @@ -1,5 +1,17 @@ import type { Metadata } from 'next'; import type { ReactNode } from 'react'; +import { Geist, Geist_Mono } from 'next/font/google'; +import '../globals.css'; + +const geistSans = Geist({ + variable: '--font-geist-sans', + subsets: ['latin'], +}); + +const geistMono = Geist_Mono({ + variable: '--font-geist-mono', + subsets: ['latin'], +}); export const metadata: Metadata = { title: 'Plugin sandbox', @@ -9,7 +21,10 @@ export const metadata: Metadata = { export default function PluginSandboxLayout({ children }: { children: ReactNode }) { return ( - + {children}