Skip to content

Commit

Permalink
fix(demo): limit schema width
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 21, 2024
1 parent 1017f53 commit 3e9fcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/demo/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ window.handleInput = async event => {
const schemas = await Promise.all(
collections.map(async collection => {
const { cptime } = transformCollection(collection, { zod });
return [collection.name, await formatCode(cptime)];
return [collection.name, await formatCode(cptime, undefined, { printWidth: 50 })];
}),
);
window.updatePreview(JSON.stringify(collections, null, 2), Object.fromEntries(schemas));
Expand Down

0 comments on commit 3e9fcd2

Please sign in to comment.