conditionally render remainder of dropcap word

This commit is contained in:
Joseph Montanaro 2023-08-19 12:16:23 -07:00
parent 54bcec280d
commit b68220fa2e

View File

@ -34,9 +34,8 @@
} }
</style> </style>
<p>
<span class="drop-cap">{initial}</span>
<span class="first-word" style:--shift={shift}>{remainder}</span>
<slot></slot>
</p>
<span class="drop-cap">{initial}</span>
{#if remainder.length}
<span class="first-word" style:--shift={shift}>{remainder}</span>
{/if}