feat(task-view): implement dynamic metadata positioning#363
Merged
Conversation
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
added a commit
that referenced
this pull request
Aug 27, 2025
feat(task-view): implement dynamic metadata positioning
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.
The layout automatically adapts based on content length, improving readability while maintaining compact display for short tasks.