Skip to content

Commit fd91fa4

Browse files
committed
refac
1 parent 484ba91 commit fd91fa4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/components/layout/Sidebar.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,7 @@
14041404
role={$user?.role}
14051405
profile={$config?.features?.enable_user_status ?? true}
14061406
showActiveUsers={false}
1407+
className="max-w-[calc(var(--sidebar-width)-1rem)]"
14071408
on:show={(e) => {
14081409
if (e.detail === 'archived-chat') {
14091410
showArchivedChats.set(true);

src/lib/components/layout/Sidebar/UserMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
export let help = false;
4040
4141
export let className = 'max-w-[240px]';
42+
export let align = 'end';
4243
4344
export let showActiveUsers = true;
4445
@@ -88,8 +89,7 @@
8889
class="w-full {className} rounded-2xl px-1 py-1 border border-gray-100 dark:border-gray-800 z-50 bg-white dark:bg-gray-850 dark:text-white shadow-lg text-sm"
8990
sideOffset={4}
9091
side="top"
91-
align="start"
92-
avoidCollisions={false}
92+
{align}
9393
transition={(e) => fade(e, { duration: 100 })}
9494
>
9595
{#if profile}

0 commit comments

Comments
 (0)