Skip to content

feat(task-view): implement dynamic metadata positioning#363

Merged
Quorafind merged 2 commits into
masterfrom
feat/move-metadata-to-same-line
Aug 9, 2025
Merged

feat(task-view): implement dynamic metadata positioning#363
Quorafind merged 2 commits into
masterfrom
feat/move-metadata-to-same-line

Conversation

@Quorafind
Copy link
Copy Markdown
Collaborator

  • New contentMetadataContainer with flex-wrap layout
  • Dynamic height detection using line-height comparison
  • CSS classes for single-line and multi-line content modes
  • Smooth transitions using Obsidian's toggleClass API
  • Responsive design for both list and tree view components

The layout automatically adapts based on content length, improving readability while maintaining compact display for short tasks.

Add intelligent layout system that positions task metadata inline with
short content or below with multi-line content. Includes:

- New contentMetadataContainer with flex-wrap layout
- Dynamic height detection using line-height comparison
- CSS classes for single-line and multi-line content modes
- Smooth transitions using Obsidian's toggleClass API
- Responsive design for both list and tree view components

The layout automatically adapts based on content length, improving
readability while maintaining compact display for short tasks.
Add user setting to control dynamic metadata layout behavior:

- New setting: enableDynamicMetadataPositioning (default: true)
- Setting UI: Toggle in View Settings tab with clear description
- Component logic: Respects setting to enable/disable feature
- Fallback behavior: When disabled, uses traditional below-content layout
- User control: Allows users to choose their preferred layout style

This provides users with flexibility to use either the new intelligent
positioning or stick with the traditional metadata placement.
@Quorafind Quorafind merged commit 4b53218 into master Aug 9, 2025
2 checks passed
@Quorafind Quorafind deleted the feat/move-metadata-to-same-line branch August 27, 2025 06:22
Quorafind added a commit that referenced this pull request Aug 27, 2025
feat(task-view): implement dynamic metadata positioning
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