diff --git a/package-lock.json b/package-lock.json index d2f64d9..5132fb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "my-weekly-todo-list", - "version": "1.104.0", + "version": "1.104.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "my-weekly-todo-list", - "version": "1.104.0", + "version": "1.104.1", "license": "MIT", "dependencies": { "@auth/prisma-adapter": "^2.11.1", diff --git a/package.json b/package.json index 1253ea8..d4b1ddc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.104.0", + "version": "1.104.1", "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": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 1be02cd..903fd85 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -8491,6 +8491,7 @@ export default function WeeklyView() { <> {listToDelete !== list.id && { const occupiedSlots = list.tasks.map(t => t.somedaySlotIndex).filter(s => s !== null && s !== undefined) as number[]; let nextFreeSlot = 0; @@ -9723,11 +9724,13 @@ function SomedayAddTask({ onAdd, onCancel, slotIdx, + darkMode, }: { listId: string; onAdd: (title: string) => void; onCancel?: () => void; slotIdx?: number; + darkMode?: boolean; }) { const [title, setTitle] = useState(""); const inputRef = useRef(null); @@ -9747,11 +9750,16 @@ function SomedayAddTask({ } }, [slotIdx]); + // Bottom-of-list "Add task..." gets an input-style background so it reads + // as a real input. The inline slot-editor (slotIdx !== undefined) keeps the + // transparent look so it visually matches the surrounding task rows. + const isBottomAddInput = slotIdx === undefined; + return (