fix(ComparisonView): add correct line-height calculation
This commit is contained in:
@@ -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 })}
|
||||||
|
|||||||
Reference in New Issue
Block a user