fix: hide add-task input when someday list delete confirmation is shown

The "Add task..." input was overlapping the Cancel/Delete buttons,
making it impossible to click Delete.

v1.57.9

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin 2026-03-23 00:30:39 +01:00
parent 9e7266053b
commit 21a0547f3d
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.57.8",
"version": "1.57.9",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -8227,7 +8227,7 @@ export default function WeeklyView() {
return (
<>
<SomedayAddTask
{listToDelete !== list.id && <SomedayAddTask
listId={list.id}
onAdd={async (title) => {
const occupiedSlots = list.tasks.map(t => t.somedaySlotIndex).filter(s => s !== null && s !== undefined) as number[];
@ -8267,7 +8267,7 @@ export default function WeeklyView() {
console.error(e);
}
}}
/>
/>}
{finalSlots.map((slot) => {
const isTarget = dropPreview?.listId === list.id && dropPreview?.slotIdx === slot.index;
const task = slot.task;