diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index bb5b82e8a..aa8f3e6b0 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -28,7 +28,7 @@ const robotoFlex = Roboto_Flex({
export default function RootLayout({ children }: RootLayoutProps) {
const pathname = usePathname();
- const isEmbed = pathname.split('/')[1] === 'embeds';
+ const isEmbed = pathname.startsWith('/tools/embed/host');
const isRoot = pathname === '/';
return (
@@ -56,30 +56,34 @@ export default function RootLayout({ children }: RootLayoutProps) {
backgroundColor: isEmbed ? 'transparent' : undefined,
}}
>
-
-
- {!isEmbed && }
+
+ {!isEmbed && }
-
+
- }>{children}
+ }>{children}
- {!isEmbed && }
-
-
+ {!isEmbed && }
+
+
+ )}
+
+ {isEmbed && children}