navigate('detail', {
eventId: event.id,
- _siblingIds: todayEvents.map((e) => e.id),
+ _siblingIds: upcomingEvents.map((e) => e.id),
_siblingKey: 'eventId',
})}
oncontextmenu={(e) => ctxMenu.open(e, event)}
+ role="listitem"
use:dragSource={{
type: 'event',
data: () => ({
@@ -183,37 +202,38 @@
canDrop: (p) => !(event.tagIds ?? []).includes((p.data as unknown as TagDragData).id),
}}
>
-
{/each}
- {#if todayEvents.length === 0}
-
Keine Termine heute
+ {#if upcomingEvents.length === 0}
+
Keine Termine
{/if}
+
diff --git a/apps/mana/apps/web/src/lib/modules/notes/ListView.svelte b/apps/mana/apps/web/src/lib/modules/notes/ListView.svelte
index 9f9d2af99..92bee85d8 100644
--- a/apps/mana/apps/web/src/lib/modules/notes/ListView.svelte
+++ b/apps/mana/apps/web/src/lib/modules/notes/ListView.svelte
@@ -10,7 +10,7 @@
import { ContextMenu, type ContextMenuItem } from '@mana/shared-ui';
import { useItemContextMenu } from '$lib/data/item-context-menu.svelte';
import { PencilSimple, Trash, PushPin } from '@mana/shared-icons';
- import VoiceCaptureBar from '$lib/components/voice/VoiceCaptureBar.svelte';
+ import FloatingInputBar from '$lib/components/FloatingInputBar.svelte';
let { navigate, goBack, params }: ViewProps = $props();
@@ -25,9 +25,8 @@
let filtered = $derived(searchNotes(notes, searchQuery));
- async function handleQuickCreate(e: KeyboardEvent) {
- if (e.key !== 'Enter' || !newTitle.trim()) return;
- e.preventDefault();
+ async function handleQuickCreate() {
+ if (!newTitle.trim()) return;
const note = await notesStore.createNote({ title: newTitle.trim() });
newTitle = '';
startEdit(note);
@@ -119,26 +118,6 @@
-
-
-
-
-
-
{#if notes.length > 5}
@@ -210,9 +189,19 @@
{#if notes.length === 0}
- Tippe oben, um eine Notiz zu erstellen.
+ Erstelle deine erste Notiz.
{/if}
+
+