Skip to content

Commit

Permalink
fix quiet compare
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Sep 28, 2023
1 parent e58b0f0 commit c2d5022
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 6 additions & 2 deletions sites/docs/src/examples/QuietModeCompare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function QuietModeCompare() {
>
<h1>Prong</h1>
<h3>Lines of code {examples.us.split("\n").length}</h3>
<QuietModeUs code={code} onChange={setCode} />
<div style={{ height: "500px" }}>
<QuietModeUs code={code} onChange={setCode} />
</div>
<h3>Raw</h3>
<div
style={{
Expand All @@ -66,7 +68,9 @@ function QuietModeCompare() {
>
<h1>Vanilla Code Mirror</h1>
<h3>Lines of code {examples.codeMirror.split("\n").length}</h3>
<QuietModeCodeMirror code={code} onChange={setCode} />
<div style={{ height: "500px" }}>
<QuietModeCodeMirror code={code} onChange={setCode} />
</div>
<h3>Raw</h3>
<div
style={{
Expand Down
6 changes: 1 addition & 5 deletions sites/docs/src/examples/QuietModeUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ const QuietModeUs = (props: {
query: nodeTypes,
},
projection: (props) => (
<div
style={{
color: coloring[props.node.type.name] || "black",
}}
>
<div style={{color: coloring[props.node.type.name] || "black"}}>
{trim(props.currentValue).length ? trim(props.currentValue) : '""'}
</div>
),
Expand Down
2 changes: 1 addition & 1 deletion sites/docs/src/examples/TraceryExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function TraceryCascadeVis(props: {
onClick(node);
}}
>
<span>{`${node.childRule}->`}</span>
<span>{node.childRule ? `${node.raw}→` : ""}</span>
{<div>{node.finishedText}</div>}
{children.length ? (
<div className="flex">
Expand Down

0 comments on commit c2d5022

Please sign in to comment.