Skip to content

Commit 77c37e6

Browse files
committed
fix: Correctly close div tag for expandable tags section
1 parent 7781bfd commit 77c37e6

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/routes/announcements/TagsHost.svelte

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,19 @@
4949
/>
5050
{/each}
5151

52-
{#if expandable && tags.length > 1}
53-
<li>
54-
<Button type="text" on:click={() => (showAllTags = !showAllTags)}>
52+
{#if expandable && tags.length > 1}
53+
<li>
54+
<Button type="text" on:click={() => (showAllTags = !showAllTags)}>
55+
<div
56+
class="expand-arrow"
57+
style:transform={showAllTags ? 'rotate(90deg)' : 'rotate(-90deg)'}
58+
>
59+
<ChevronDown size="24px" color="var(--surface-six)" />
60+
</div>
61+
</Button>
62+
</li>
63+
{/if}
64+
</div>
5565

5666
<style lang="scss">
5767
div {

0 commit comments

Comments
 (0)