fix(ComparisonView): add correct line-height calculation

This commit is contained in:
Ilia Mashkov
2026-04-20 10:51:41 +03:00
parent 3e11821814
commit f9f96e2797
@@ -33,8 +33,8 @@ let { chars, character }: Props = $props();
<div <div
class="relative flex w-full justify-center items-center whitespace-nowrap" class="relative flex w-full justify-center items-center whitespace-nowrap"
style:height="{typography.height}em" style:height="{typography.height * typography.renderedSize}px"
style:line-height="{typography.height}em" style:line-height="{typography.height * typography.renderedSize}px"
> >
{#each chars as c, index} {#each chars as c, index}
{@render character?.({ char: c.char, index })} {@render character?.({ char: c.char, index })}