Skip to content

Commit e065e0a

Browse files
committed
fix: set wrap-content to true for better code readability
1 parent d05547b commit e065e0a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/components/MDX/Sandpack/CustomPreset.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ const Editor = memo(function Editor({
125125
showTabs={false}
126126
showRunButton={false}
127127
extensions={lintExtensions}
128+
wrapContent={true}
128129
/>
129130
);
130131
});

src/styles/sandpack.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ html.dark .sp-wrapper {
216216

217217
.sandpack--playground .sp-code-editor .cm-line {
218218
padding: 0 var(--sp-space-3);
219-
width: max-content;
220219
}
221220

222221
.sandpack--playground .sp-code-editor .cm-lineNumbers {

0 commit comments

Comments
 (0)