refac
This commit is contained in:
1 parent
423cafd4e7
commit
b16a4c4e9a
3 files changed
+3
-17
No files matched your search
@@ -173,7 +173,9 @@
|
|||||||
|
|
||||||
{#if open}
|
{#if open}
|
||||||
<div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}>
|
<div transition:slide={{ duration: 300, easing: quintOut, axis: 'y' }}>
|
||||||
<div class="border border-gray-50 dark:border-gray-850/30 rounded-2xl my-1.5 p-2.5 space-y-2">
|
<div
|
||||||
|
class="border border-gray-50 dark:border-gray-850/30 rounded-2xl my-1.5 p-2.5 space-y-2"
|
||||||
|
>
|
||||||
<!-- Input -->
|
<!-- Input -->
|
||||||
{#if args}
|
{#if args}
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -1018,7 +1018,6 @@ ${content}
|
|||||||
onDelete={() => {
|
onDelete={() => {
|
||||||
showDeleteConfirm = true;
|
showDeleteConfirm = true;
|
||||||
}}
|
}}
|
||||||
onChat={openNoteChat}
|
|
||||||
isPinned={$pinnedNotes.some((n) => n.id === note.id)}
|
isPinned={$pinnedNotes.some((n) => n.id === note.id)}
|
||||||
onPin={async () => {
|
onPin={async () => {
|
||||||
await toggleNotePinnedStatusById(localStorage.token, note.id);
|
await toggleNotePinnedStatusById(localStorage.token, note.id);
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
import Link from '$lib/components/icons/Link.svelte';
|
import Link from '$lib/components/icons/Link.svelte';
|
||||||
import Pin from '$lib/components/icons/Pin.svelte';
|
import Pin from '$lib/components/icons/Pin.svelte';
|
||||||
import PinSlash from '$lib/components/icons/PinSlash.svelte';
|
import PinSlash from '$lib/components/icons/PinSlash.svelte';
|
||||||
import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte';
|
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
@@ -22,7 +21,6 @@
|
|||||||
export let onDelete = () => {};
|
export let onDelete = () => {};
|
||||||
export let onPin = null;
|
export let onPin = null;
|
||||||
export let isPinned = false;
|
export let isPinned = false;
|
||||||
export let onChat = null;
|
|
||||||
|
|
||||||
export let onCopyLink = null;
|
export let onCopyLink = null;
|
||||||
export let onCopyToClipboard = null;
|
export let onCopyToClipboard = null;
|
||||||
@@ -42,19 +40,6 @@
|
|||||||
|
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<DropdownMenu className="min-w-[180px]">
|
<DropdownMenu className="min-w-[180px]">
|
||||||
{#if onChat}
|
|
||||||
<button
|
|
||||||
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"
|
|
||||||
on:click={() => {
|
|
||||||
onChat();
|
|
||||||
show = false;
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<ChatBubbleOval className="size-3.5" strokeWidth="2" />
|
|
||||||
<div class="flex items-center">{$i18n.t('Chat with note')}</div>
|
|
||||||
</button>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<DropdownSub contentClass="select-none z-50">
|
<DropdownSub contentClass="select-none z-50">
|
||||||
<button
|
<button
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
|
|||||||
Reference in new issue
Block a user