From 5d55beeb55e38320e07c06a9a6dc20e2e87549f3 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Mon, 11 May 2026 12:05:34 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20unify=20someday=20task=20icon=20column?= =?UTF-8?q?=20=E2=80=94=20all=20icons=20before=20checkbox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ⚡ priority and delegation icons were still rendering inside the text span (after the checkbox). Now ALL task icons (project, priority, delegation) are consolidated into the single fixed-width 18px column before the checkbox for someday tasks. Tasks with no icon get an empty placeholder so checkboxes and task names stay column-aligned. v1.108.1 --- package.json | 2 +- src/components/WeeklyView.tsx | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index d8e386b..c5c01cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.108.0", + "version": "1.108.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 2b0bb10..d76e0b3 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -10240,10 +10240,17 @@ function TaskItem({ ) : ( <> - {/* Someday: fixed-width project icon column for alignment */} - {isSomeday && showProjectIcons && ( + {/* Someday: fixed-width icon column — project icon, priority badge, delegation, or empty placeholder */} + {isSomeday && ( - {task.project && } + {showProjectIcons && task.project + ? + : (() => { + if (showPriorityIcons) { const pb = getPriorityBadge(task, priorityStyle, 11); if (pb) return pb.node; } + if (task.delegatedTo) return task.delegatedTo === "AI" ? : ; + return null; + })() + } )} {/* Someday: checkbox outside text span so it aligns in its own column */} @@ -10299,7 +10306,8 @@ function TaskItem({ flex: 1, }} > - {showPriorityIcons && (() => { + {/* Non-someday only: priority/delegation icons inline. Someday shows them in the leading column. */} + {!isSomeday && showPriorityIcons && (() => { const pb = getPriorityBadge(task, priorityStyle, 11); return pb ? ( @@ -10307,7 +10315,7 @@ function TaskItem({ ) : null; })()} - {task.delegatedTo && ( + {!isSomeday && task.delegatedTo && (