Skip to content

Commit 8b3c780

Browse files
committed
Fix for multi line expressions
1 parent 540fa5a commit 8b3c780

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
<template x-for="expression in expressions">
1616
<div class="results"
1717
:class="
18-
((expression.from >= currentLineFrom) && (expression.from <= currentLineTo) ||
19-
(expression.to >= currentLineFrom) && (expression.to <= currentLineTo)) ? 'highligted' : ''"
18+
((expression.from <= currentLineTo) && (expression.to >= currentLineFrom)) ? 'highligted' : ''"
2019
x-html="expression.outputs" x-show="expression.visible"
21-
x-effect="if((currentLine >= expression.from) && (currentLine <= expression.to)) $el.scrollIntoView({ block: 'nearest', inline: 'start'})">
20+
x-effect="if((expression.from <= currentLineTo) && (expression.to >= currentLineFrom)) $el.scrollIntoView({ block: 'nearest', inline: 'start'})">
2221
</div>
2322
</template>
2423
</article>

0 commit comments

Comments
 (0)