refac
This commit is contained in:
1 parent
2196b4e1ff
commit
6f93ecd4fd
16 files changed
+550
-62
No files matched your search
@@ -12,6 +12,7 @@
|
||||
import TrashIcon from '../icons/Trash.svelte';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import Download from '../icons/Download.svelte';
|
||||
import CheckIcon from '$lib/components/icons/Check.svelte';
|
||||
|
||||
export let align: 'start' | 'end' = 'start';
|
||||
export let onEdit = () => {};
|
||||
@@ -19,6 +20,7 @@
|
||||
export let onShare = () => {};
|
||||
export let onDelete = () => {};
|
||||
export let onCreateSubFolder = () => {};
|
||||
export let onMarkAllRead = () => {};
|
||||
|
||||
let show = false;
|
||||
</script>
|
||||
@@ -57,6 +59,19 @@
|
||||
|
||||
<hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" />
|
||||
|
||||
<button
|
||||
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
on:click={() => {
|
||||
show = false;
|
||||
onMarkAllRead();
|
||||
}}
|
||||
>
|
||||
<CheckIcon className="size-3.5" />
|
||||
<div class="flex items-center">{$i18n.t('Mark all as read')}</div>
|
||||
</button>
|
||||
|
||||
<hr class="border-gray-50/30 dark:border-gray-800/30 mx-1 my-0.5" />
|
||||
|
||||
<button
|
||||
class="flex h-[1.6875rem] w-full items-center gap-2 rounded-xl px-2 text-[13px] select-none cursor-pointer hover:bg-gray-50/40 dark:hover:bg-gray-800/40"
|
||||
on:click={() => {
|
||||
|
||||
Reference in new issue
Block a user