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] Cannot click at cursor #270

Closed Missionary2112 closed 5 months ago

Missionary2112 commented 5 months ago

Describe the bug

Cursor does not spawn at clicked location in Live Preview mode

Expected behavior Cursor should be spawned at clicked location in Live Preview mode. I did try the same with default theme and AnuPpuccin theme, and it works just fine.

To Reproduce

Follow the layout in source mode below

Screenshots

Video showing the bug https://github.com/SlRvb/Obsidian--ITS-Theme/assets/98799613/3583e44b-bb46-46df-8e46-96aad5ea6035

In Source mode 2024-01-22_20 31 41_CSX

OS

Where does the bug occur?

Versions

SlRvb commented 5 months ago

Hmmm, I can't seem to recreate this. If you disable style settings and reload, does that fix the cursor issue?

Missionary2112 commented 5 months ago

I did try to disable style settings but it doesn't work.

I think I know the issue. Allow me to demonstrate. Basically I use CSS that conflict with ITS theme and that's why the cursor does not appear at the clicked point. However, AnuPpuccin theme and default theme seem to work fine, except sticky note css I just installed recently.

https://github.com/SlRvb/Obsidian--ITS-Theme/assets/98799613/51fd15e8-5eab-4db2-a247-f70e5b2e85c3

SlRvb commented 5 months ago

Hmmm any chance I could get that css file to test and see what's wrong?

Missionary2112 commented 5 months ago

Yeah sure. Dropdown & Sticky Notes CSS.zip

Sources

CSS examples

Dropdown

> [!menu] 
> - Column 1
>   - Content 1.1
>   - Content 1.2
> - Column 2
>   - Content 2.1
>   - Content 2.2

Sticky Notes

> [!sticky|green center]
> green center
SlRvb commented 5 months ago

Hmm if you remove the line at 139 for the Dropdown snippet does that fix it?

Missionary2112 commented 5 months ago

Yes, it does enable to click on the heading but not the line below the heading. As you can see in the video below, I first demonstrated on ITS theme then changed to AnuPpuccin theme.

https://github.com/SlRvb/Obsidian--ITS-Theme/assets/98799613/706d774e-f21a-4f76-b3da-b24d808b83b1

SlRvb commented 5 months ago

Just to check, what version of ITS are you on?

Missionary2112 commented 5 months ago

Oh yes, my back. I just updated to the lastest ITS version and it works nice! Thank you :)