From 04758db04efabb40c09124003bcf20a9b296414b Mon Sep 17 00:00:00 2001 From: Tristan Michael Date: Mon, 30 Mar 2026 10:10:16 -0700 Subject: [PATCH] Restyle new task sheet to match task detail view layout Use the same visual structure as TaskDetailView: large bold title input, description textarea with notes icon, and date/time row with DateTimePicker. Uses fixed positioning with a combined backdrop wrapper to avoid layout shifts and ensure proper slide-up animation. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/lib/components/NewTaskInput.svelte | 137 +++++++++++++----- 1 file changed, 101 insertions(+), 36 deletions(-) diff --git a/apps/tauri/src/lib/components/NewTaskInput.svelte b/apps/tauri/src/lib/components/NewTaskInput.svelte index c3325cd..9efc02b 100644 --- a/apps/tauri/src/lib/components/NewTaskInput.svelte +++ b/apps/tauri/src/lib/components/NewTaskInput.svelte @@ -5,16 +5,24 @@ - +
{ if (e.key === "Escape") handleClose(); }} ->
- - -
-
-
{ e.preventDefault(); handleSubmit(); }}> - { if (e.key === "Escape") handleClose(); }} - /> - +
e.stopPropagation()} +> + { e.preventDefault(); handleSubmit(); }} class="px-4 pt-4"> + + { if (e.key === "Escape") handleClose(); }} + /> + + +
+ + + +
+ + +
+ + + + {#if dueDate} +
+ + +
+ {:else} + + {/if} +
+ + + +
+
+ + + {#if showDatePicker} + (showDatePicker = false)} + /> + {/if} +