|
@@ -111,7 +111,7 @@
|
|
|
|
|
|
<div slot="content">
|
|
|
<DropdownMenu.Content
|
|
|
- class="w-full max-w-[200px] rounded-xl px-1 py-1.5 z-50 bg-white dark:bg-gray-850 dark:text-white shadow-lg"
|
|
|
+ class="w-full max-w-[200px] rounded-2xl px-1 py-1 border border-gray-100 dark:border-gray-850 z-50 bg-white dark:bg-gray-850 dark:text-white shadow-lg transition"
|
|
|
sideOffset={-2}
|
|
|
side="bottom"
|
|
|
align="start"
|
|
@@ -119,7 +119,7 @@
|
|
|
>
|
|
|
{#if $user?.role === 'admin' || ($user.permissions?.chat?.share ?? true)}
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
shareHandler();
|
|
|
}}
|
|
@@ -131,7 +131,7 @@
|
|
|
|
|
|
<DropdownMenu.Sub>
|
|
|
<DropdownMenu.SubTrigger
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
>
|
|
|
<Download strokeWidth="1.5" />
|
|
|
|
|
@@ -144,7 +144,7 @@
|
|
|
>
|
|
|
{#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)}
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
downloadJSONExport();
|
|
|
}}
|
|
@@ -154,7 +154,7 @@
|
|
|
{/if}
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
downloadTxt();
|
|
|
}}
|
|
@@ -165,7 +165,7 @@
|
|
|
</DropdownMenu.Sub>
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
renameHandler();
|
|
|
}}
|
|
@@ -177,7 +177,7 @@
|
|
|
<hr class="border-gray-50 dark:border-gray-800 my-1" />
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
pinHandler();
|
|
|
}}
|
|
@@ -194,7 +194,7 @@
|
|
|
{#if chatId}
|
|
|
<DropdownMenu.Sub>
|
|
|
<DropdownMenu.SubTrigger
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md select-none w-full"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl select-none w-full"
|
|
|
>
|
|
|
<Folder />
|
|
|
|
|
@@ -207,7 +207,7 @@
|
|
|
>
|
|
|
{#each $folders.sort((a, b) => b.updated_at - a.updated_at) as folder}
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
moveChatHandler(chatId, folder.id);
|
|
|
}}
|
|
@@ -222,7 +222,7 @@
|
|
|
{/if}
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
cloneChatHandler();
|
|
|
}}
|
|
@@ -232,7 +232,7 @@
|
|
|
</DropdownMenu.Item>
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
archiveChatHandler();
|
|
|
}}
|
|
@@ -242,7 +242,7 @@
|
|
|
</DropdownMenu.Item>
|
|
|
|
|
|
<DropdownMenu.Item
|
|
|
- class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md"
|
|
|
+ class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
|
|
on:click={() => {
|
|
|
deleteHandler();
|
|
|
}}
|