Skip to content

fix(task-list): keep each date in its own column in the wide Task List (#2756) - #2757

Merged
callumalpass merged 1 commit into
mainfrom
fix/2756-date-columns
Nov 30, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2756-date-columns

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Fixes #2756.

Cause

In the wide Task List (desktop, container wide enough for columns), scheduled and due sit in fixed-width slots at the end of the row so they line up from row to row. A slot is created for each date the view shows, but when the task has no value for that date the slot is hidden (display: none). The remaining date then took the last column. A task with only a scheduled date showed it where other rows show the due date, and the properties before it shifted by one column.

Fix

  • styles/task-card-layout.css: in the wide Task List only, an empty hidden date slot keeps its width (display: block; visibility: hidden).
  • src/ui/taskCardMetadata.ts: data-dates, which reserves room for the date columns, now counts those empty columns too.
  • Narrow Task List, Kanban, Agenda and inline cards are unchanged: empty slots still collapse there.

This doesn't change the order of the dates or where they sit relative to other properties (#2753, #2714). Those stay as the 5.0 layout places them.

Verification

#2756)

The wide Task List puts scheduled and due in fixed-width columns at the
end of the row. A task that lacks one of the view's dates hid that slot,
so a lone scheduled date slid into the due column and the other
properties shifted by a column width.

Keep an empty slot's width (visibility: hidden) in the wide layout and
count it in data-dates so the reserved room still covers both columns.
Narrow layouts, Kanban and calendar cards keep collapsing empty slots.
@callumalpass
callumalpass merged commit eac949f into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR]: Make the horizontal position of dates consistent in task list view

1 participant