You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When wrapping a <TimelineOppositeContent> block in a svelte if statement, a .opposite-content<div> gets generated even if it shouldn't and messes up the timeline alignment.
<script>letitems=[{year: '2023',description: 'The year 2023'},{year: '2022',description: 'The year 2022'},{year: '2021',description: 'The year 2021'},]letopposite=true</script><Timelineposition="alternate">
{#each items as item}
<TimelineItem>
{#if opposite}
<TimelineOppositeContentslot="opposite-content"><pclass="oposite-content-title">{item.year}</p></TimelineOppositeContent>
{/if}
<TimelineSeparator><TimelineDot />
<TimelineConnector />
</TimelineSeparator><TimelineContent><pclass="content-description">{item.description}</p></TimelineContent></TimelineItem>
{/each}
</Timeline>
opposite set to true:
{#if} condition removed or opposite set to false:
The text was updated successfully, but these errors were encountered:
When wrapping a
<TimelineOppositeContent>
block in a svelte if statement, a.opposite-content
<div>
gets generated even if it shouldn't and messes up the timeline alignment.opposite
set totrue
:{#if}
condition removed oropposite
set tofalse
:The text was updated successfully, but these errors were encountered: