Closed pjebs closed 1 year ago
@metonym You can see in the screenshot that line 890 has padding-bottom set to 1em despite not being the last line of code.
line 890
1em
The solution is to remove @const from below lines: https://github.com/metonym/svelte-highlight/blob/master/src/LineNumbers.svelte#L86
@const
It interferes with the reactivity of the code prop which could have varying numbers of lines.
code
Fixed in v7.1.2
@metonym You can see in the screenshot that
line 890
has padding-bottom set to1em
despite not being the last line of code.The solution is to remove
@const
from below lines: https://github.com/metonym/svelte-highlight/blob/master/src/LineNumbers.svelte#L86It interferes with the reactivity of the
code
prop which could have varying numbers of lines.