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:
parent
9e7266053b
commit
21a0547f3d
@ -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": {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user