-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent indentation with dataview embedded lists #410
Comments
I was able to get alignment to be more consistent by resetting the body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataview h4,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataview>h4,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs h4,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs>h1,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs>h2,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs>h3,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs>h4,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .block-language-dataviewjs>p,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .dataview.dataview-container>.contains-task-list,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .dataview.dataview-error,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .dataview.list-view-ul,
body:not(.table-100):not(.table-max):not(.table-wide) .markdown-preview-view.is-readable-line-width:not(.table-100):not(.table-max):not(.table-wide) .dataview.result-group {
max-width: 100%;
} |
I'm also stuck trying to debug this issue. Please update if anyone was able to find a workaround. I'm using Minimal theme. |
Please try again with Minimal 7.0+ |
OK, this seems to solve the issue for me: /* fix for Dataview checklists */
.is-live-preview ul[class="contains-task-list"]{
padding-left: 1.9em !important;
text-indent: -1.5em !important
}
/* fix for Tasks checklists */
.is-live-preview ul > li.plugin-tasks-list-item {
padding-left: 0em !important;
text-indent: -1.5em !important
} |
I found this issue whilst investigating the non-indentation of task lines in Tasks query blocks in Live Preview. The discussion here has been helpful. SummaryAfter much more experimentation, I am now as confident as I can be that it happens in many themes and multiple plugins, and so should be fixed in Obsidian, and not in individual themes in plugins (especially as the fix requires ReasoningPlease see the self-contained comment: obsidian-tasks-group/obsidian-tasks#2361 (comment) |
Is the bug present when using the default Obsidian theme?
No
Is the bug present when snippets and plugins are disabled?
Yes
Minimal theme version
6.0.4
Describe the bug
The styles for dataview embedded lists are applied inconsistently in two ways:
taskList
that isn't present in the live preview (seeGrouped
section). I'd prefer the non-indented, "strict embed" style, but consistency between the two would be nice, and/or an easy way to override.Ungrouped
section) are outdented when thetaskList
is rendered without grouping. The ungrouped version lacks adiv
withdataview result-group
class wrapping theul
.Raw markdown:
Debug info
I notice this says I have 1 snippet enabled still, but the two custom
css
files I use are disabled in settings.The text was updated successfully, but these errors were encountered: