Skip to content

Commit

Permalink
feat(sidebar): shows settings button on collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Oct 30, 2023
1 parent bbe137b commit 1f724fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/components/Sidebar.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import Profile from "$lib/components/sidebar/Profile.svelte"
import SettingsButton from "$lib/components/sidebar/SettingsButton.svelte"
import SideButton from "$lib/components/sidebar/SideButton.svelte"
import { PageType } from "$lib/types/Chat"
import Icon from "@iconify/svelte"
Expand Down Expand Up @@ -61,7 +62,11 @@
</div>
<!-- -->
<div class="side-bottom">
<Profile />
{#if isCollapsed}
<Profile />
{:else}
<SettingsButton />
{/if}
</div>
</div>
<!-- -->
Expand Down

0 comments on commit 1f724fe

Please sign in to comment.