Skip to content

Commit

Permalink
Fix for multi line expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dvd101x committed Jan 8, 2025
1 parent 540fa5a commit 8b3c780
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
<template x-for="expression in expressions">
<div class="results"
:class="
((expression.from >= currentLineFrom) && (expression.from <= currentLineTo) ||
(expression.to >= currentLineFrom) && (expression.to <= currentLineTo)) ? 'highligted' : ''"
((expression.from <= currentLineTo) && (expression.to >= currentLineFrom)) ? 'highligted' : ''"
x-html="expression.outputs" x-show="expression.visible"
x-effect="if((currentLine >= expression.from) && (currentLine <= expression.to)) $el.scrollIntoView({ block: 'nearest', inline: 'start'})">
x-effect="if((expression.from <= currentLineTo) && (expression.to >= currentLineFrom)) $el.scrollIntoView({ block: 'nearest', inline: 'start'})">
</div>
</template>
</article>
Expand Down

0 comments on commit 8b3c780

Please sign in to comment.