SlRvb / Obsidian--ITS-Theme

Theme designed with readability and customizability in mind. Change it easily to your liking with the Style Settings plugin installed.
https://publish.obsidian.md/slrvb-docs/ITS+Theme/ITS+Theme
GNU General Public License v2.0
520 stars 113 forks source link

[Bug] Collapsible Callout Snippet #279

Closed Jack-Chronicle closed 4 months ago

Jack-Chronicle commented 4 months ago

Describe the bug

The Snippet for alternate call outs isn't letting you collapse/expand any Callout that is offset to the right in reading view

Expected behavior Any alternate Callout included that defaults to the right or that is offset to there should be capable of collapsing and expanding, with the +/-, in reading view as well as live preview mode

To Reproduce

Steps to reproduce the behavior:

  1. Go to live preview
  2. Make a Callout, with a position to the right
  3. Make it Collapsible
  4. Go to reading view
  5. Can't expand/collapse

OS

Where does the bug occur?

Versions

Additional context

It works fine in the latest ITS Theme, but the Snippet from the GitHub isn't working

SlRvb commented 4 months ago

Does this happen on the default theme? I can't seem to recreate this 🤔

Jack-Chronicle commented 4 months ago

Yeah, I tried it without any other snippets or plugins and on the default theme

Specifically the aside callout was what I was checking, but some others were having issues when I tried them as well

Jack-Chronicle commented 4 months ago

After messing around, I find out the real issue It works fine so long as the next text after the Callout isn't a list

I just added some text after it and it started working again

SlRvb commented 4 months ago

Could you update the snippet and let me know if it's fixed now? Thanks for bringing my attention to this!

Jack-Chronicle commented 4 months ago

That appears to have fixed it, thanks!