Skip to content

Commit b16a4c4

Browse files
committed
refac
1 parent 423cafd commit b16a4c4

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

src/lib/components/common/ToolCallDisplay.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@
173173

174174
{#if open}
175175
<div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}>
176-
<div class="border border-gray-50 dark:border-gray-850/30 rounded-2xl my-1.5 p-2.5 space-y-2">
176+
<div
177+
class="border border-gray-50 dark:border-gray-850/30 rounded-2xl my-1.5 p-2.5 space-y-2"
178+
>
177179
<!-- Input -->
178180
{#if args}
179181
<div>

src/lib/components/notes/NoteEditor.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,6 @@ ${content}
10181018
onDelete={() => {
10191019
showDeleteConfirm = true;
10201020
}}
1021-
onChat={openNoteChat}
10221021
isPinned={$pinnedNotes.some((n) => n.id === note.id)}
10231022
onPin={async () => {
10241023
await toggleNotePinnedStatusById(localStorage.token, note.id);

src/lib/components/notes/Notes/NoteMenu.svelte

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import Link from '$lib/components/icons/Link.svelte';
1212
import Pin from '$lib/components/icons/Pin.svelte';
1313
import PinSlash from '$lib/components/icons/PinSlash.svelte';
14-
import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte';
1514
1615
const i18n = getContext('i18n');
1716
@@ -22,7 +21,6 @@
2221
export let onDelete = () => {};
2322
export let onPin = null;
2423
export let isPinned = false;
25-
export let onChat = null;
2624
2725
export let onCopyLink = null;
2826
export let onCopyToClipboard = null;
@@ -42,19 +40,6 @@
4240

4341
<div slot="content">
4442
<DropdownMenu className="min-w-[180px]">
45-
{#if onChat}
46-
<button
47-
class="select-none flex h-[1.6875rem] w-full cursor-pointer items-center gap-2 rounded-xl bg-transparent px-2 text-[13px] hover:text-gray-900 dark:hover:text-gray-100"
48-
on:click={() => {
49-
onChat();
50-
show = false;
51-
}}
52-
>
53-
<ChatBubbleOval className="size-3.5" strokeWidth="2" />
54-
<div class="flex items-center">{$i18n.t('Chat with note')}</div>
55-
</button>
56-
{/if}
57-
5843
<DropdownSub contentClass="select-none z-50">
5944
<button
6045
slot="trigger"

0 commit comments

Comments
 (0)