Skip to content

fix: restore subgroup indentation in TaskList views#1788

Open
renatomen wants to merge 2 commits intocallumalpass:mainfrom
renatomen:fix/tasklist-subgroup-indentation
Open

fix: restore subgroup indentation in TaskList views#1788
renatomen wants to merge 2 commits intocallumalpass:mainfrom
renatomen:fix/tasklist-subgroup-indentation

Conversation

@renatomen
Copy link
Copy Markdown
Contributor

Description

Fixes subgroup headers not displaying with proper indentation in TaskList views when sub-grouping is configured.

Problem

When viewing tasks with both primary grouping and sub-grouping enabled, sub-headers were rendering at the same level as primary headers without visual indentation, making the hierarchy unclear.

Before: Sub-headers appeared flush left with primary headers
After: Sub-headers display with 16px left padding showing clear hierarchy

Solution

Added CSS rules for [data-level="sub"] attribute selector in task-list-view.css:

  • 16px left padding for indentation
  • Smaller font size (0.95em) and muted color for visual distinction
  • Reduced opacity and size for chevron icons on sub-headers

The TypeScript code was already setting data-level="sub" on sub-header elements, but the corresponding CSS rules only existed in the Bases-specific stylesheet. This PR adds the missing rules to the general TaskList view styles.

Subgroup header indentation CSS selectors had a typo
(tn-tasknoteTaskList instead of tn-tasknotesTaskList) causing the
rules to never match.

Also added margin-left to task cards under subgroups so their
chevrons align directly below the subgroup header chevron.
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.

1 participant