Skip to content

Commit 0ef1557

Browse files
gaearonclaude
andcommitted
Keep styles.css hidden in sandboxes
The Pages Router build always hid the generated /src/styles.css tab (the old check read a `visible` flag that was never set). Restoring that so ~76 pages don't grow a second tab. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e23e286 commit 0ef1557

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MDX/Sandpack/SandpackRSCRoot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function SandpackRSCRoot(props: SandpackProps) {
9090

9191
files['/src/styles.css'] = {
9292
code: [sandboxStyle, files['/src/styles.css']?.code ?? ''].join('\n\n'),
93-
hidden: sourceFiles['/src/styles.css']?.hidden ?? true,
93+
hidden: true,
9494
};
9595

9696
return (

src/components/MDX/Sandpack/SandpackRoot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function SandpackRoot(props: SandpackProps) {
8787

8888
files['/src/styles.css'] = {
8989
code: [sandboxStyle, files['/src/styles.css']?.code ?? ''].join('\n\n'),
90-
hidden: sourceFiles['/src/styles.css']?.hidden ?? true,
90+
hidden: true,
9191
};
9292

9393
return (

0 commit comments

Comments
 (0)