Spaces:
Running
Running
fix(nav): conditionally render mobile nav title
Browse files
src/lib/components/MobileNav.svelte
CHANGED
@@ -67,7 +67,9 @@
|
|
67 |
bind:this={openEl}><CarbonTextAlignJustify /></button
|
68 |
>
|
69 |
<div class="flex h-full items-center justify-center">
|
70 |
-
|
|
|
|
|
71 |
</div>
|
72 |
<a
|
73 |
class:invisible={!page.params?.id}
|
|
|
67 |
bind:this={openEl}><CarbonTextAlignJustify /></button
|
68 |
>
|
69 |
<div class="flex h-full items-center justify-center">
|
70 |
+
{#if page.params?.id}
|
71 |
+
<span class="truncate px-4" data-testid="chat-title">{title}</span>
|
72 |
+
{/if}
|
73 |
</div>
|
74 |
<a
|
75 |
class:invisible={!page.params?.id}
|