Repository navigation
fix(task-list): keep each date in its own column in the wide Task List (#2756) - #2757
Merged
Merged
Conversation
#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.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
@homecontext lines up on all rows. In a 360px sidebar the empty slots still collapse.e2e/issues/issue-2756-task-list-date-columns.spec.ts: passes with the fix. Fails on main (scheduled-only date 148px off, in the due column).tests/unit/ui/taskCardMetadata.test.ts(fails on main).npm run typecheck,npm run lint, full unit suite (6,745 tests) pass.