efemkay / obsidian-modular-css-layout

CSS Layout hack for Obsidian.md
https://efemkay.github.io/obsidian-modular-css-layout/
GNU General Public License v3.0
918 stars 74 forks source link

List Card hashtag affecting all lists in a multi-column callout #85

Open FitzFrobozz opened 5 months ago

FitzFrobozz commented 5 months ago

I just noticed that when I apply #mcl/list-card or #mcl/list-card-wide to a list that is inside a multi-column callout, the entire parent callout is given the tag-mcllist-card (or -wide) class, which results in all lists anywhere within the multi-column callout (regardless of their proximity to the list or positions within various sub callouts, etc.) receiving the list card style.

I don't know if this is intended/expected behavior or not, but I don't see it mentioned in the docs and I haven't noticed similar behavior with the other snippets in the MCL collection.

I could look into adding some custom CSS to my snippet to override this, but I would appreciate getting some clarity on what to expect here, and, bonus, any suggestions for working around the issue.