Skip to content

Commit 58b6396

Browse files
committed
fix: added else if condition instead of if
1 parent e8e09ba commit 58b6396

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/lib/components/sidebar.svelte

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@
255255
</Tooltip>
256256
</div>
257257
</Layout.Stack>
258-
{/if}
259-
{#if $isSmallViewport}
258+
{:else if $isSmallViewport}
260259
<div class="action-buttons">
261260
<Layout.Stack direction="column" gap="s">
262261
<DropList show={$feedback.show} scrollable>
@@ -269,6 +268,9 @@
269268
}}
270269
>Feedback
271270
</Button.Button>
271+
<svelte:fragment slot="other">
272+
<MobileFeedbackModal />
273+
</svelte:fragment>
272274
</DropList>
273275

274276
<DropList show={$showSupportModal} scrollable>
@@ -280,6 +282,10 @@
280282
trackEvent(Click.SupportOpenClick, { source: 'side_nav' });
281283
}}>
282284
<span>Support</span>
285+
<svelte:fragment slot="other">
286+
<MobileSupportModal bind:show={$showSupportModal}
287+
></MobileSupportModal>
288+
</svelte:fragment>
283289
</Button.Button>
284290
</DropList>
285291
</Layout.Stack>
@@ -340,11 +346,6 @@
340346
</Sidebar.Base>
341347
</div>
342348

343-
{#if $isSmallViewport}
344-
<MobileFeedbackModal />
345-
<MobileSupportModal bind:show={$showSupportModal} />
346-
{/if}
347-
348349
{#if subNavigation}
349350
<div class="sub-navigation" class:icons={state === 'icons'}>
350351
<svelte:component this={subNavigation} />

0 commit comments

Comments
 (0)