Skip to content

Commit d1ae050

Browse files
authored
Merge pull request #63 from code-hike/fix-copy-paste
Fix copy paste
2 parents 8e3a417 + 194df63 commit d1ae050

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/mini-editor/src/code.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ function Line({ line }: { line: CodeLine }) {
225225
{token}
226226
</span>
227227
))}
228+
<br />
228229
</div>
229230
)
230231
}
@@ -287,6 +288,7 @@ function ColumnedLine({
287288
</span>
288289
)
289290
)}
291+
<br />
290292
</div>
291293
)
292294
}

packages/smooth-lines/src/lines.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function LineContainer({
8181
transform: `translate(${dx}px, ${dy}px)`,
8282
opacity,
8383
width,
84+
display: opacity <= 0 ? "none" : undefined,
8485
}}
8586
>
8687
{children}

0 commit comments

Comments
 (0)