diff --git a/apps/mana/apps/web/src/lib/components/FloatingInputBar.svelte b/apps/mana/apps/web/src/lib/components/FloatingInputBar.svelte new file mode 100644 index 000000000..cb7df8a29 --- /dev/null +++ b/apps/mana/apps/web/src/lib/components/FloatingInputBar.svelte @@ -0,0 +1,165 @@ + + + +
{ + e.preventDefault(); + onSubmit(); + }} + class="floating-input-bar" +> + {#if voice} + + {/if} + +
+ + diff --git a/apps/mana/apps/web/src/lib/modules/calendar/ListView.svelte b/apps/mana/apps/web/src/lib/modules/calendar/ListView.svelte index b540ac6cb..5048960b4 100644 --- a/apps/mana/apps/web/src/lib/modules/calendar/ListView.svelte +++ b/apps/mana/apps/web/src/lib/modules/calendar/ListView.svelte @@ -1,14 +1,13 @@ -
+
{#each weekDays() as day, i} @@ -138,34 +170,21 @@ {/each}
- -
-
-

Heute

-
- -
{ - e.preventDefault(); - createEvent(); - }} - class="quick-add" - > - - -
- - {#each todayEvents as event (event.id)} + +
+ {#each upcomingEvents as event (event.id)} {@const eventTags = getTagsByIds(allTags, event.tagIds ?? [])} - +
{/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 @@
- - - - -
e.preventDefault()} class="quick-add"> - + - -
- {#if notes.length > 5} @@ -210,9 +189,19 @@
{#if notes.length === 0} -

Tippe oben, um eine Notiz zu erstellen.

+

Erstelle deine erste Notiz.

{/if} + +