refac
This commit is contained in:
@@ -1404,6 +1404,7 @@
|
|||||||
role={$user?.role}
|
role={$user?.role}
|
||||||
profile={$config?.features?.enable_user_status ?? true}
|
profile={$config?.features?.enable_user_status ?? true}
|
||||||
showActiveUsers={false}
|
showActiveUsers={false}
|
||||||
|
className="max-w-[calc(var(--sidebar-width)-1rem)]"
|
||||||
on:show={(e) => {
|
on:show={(e) => {
|
||||||
if (e.detail === 'archived-chat') {
|
if (e.detail === 'archived-chat') {
|
||||||
showArchivedChats.set(true);
|
showArchivedChats.set(true);
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
export let help = false;
|
export let help = false;
|
||||||
|
|
||||||
export let className = 'max-w-[240px]';
|
export let className = 'max-w-[240px]';
|
||||||
|
export let align = 'end';
|
||||||
|
|
||||||
export let showActiveUsers = true;
|
export let showActiveUsers = true;
|
||||||
|
|
||||||
@@ -88,8 +89,7 @@
|
|||||||
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"
|
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"
|
||||||
sideOffset={4}
|
sideOffset={4}
|
||||||
side="top"
|
side="top"
|
||||||
align="start"
|
{align}
|
||||||
avoidCollisions={false}
|
|
||||||
transition={(e) => fade(e, { duration: 100 })}
|
transition={(e) => fade(e, { duration: 100 })}
|
||||||
>
|
>
|
||||||
{#if profile}
|
{#if profile}
|
||||||
|
|||||||
Reference in New Issue
Block a user