kirso / logseq-panic-theme

Dark theme for Logseq inspired by Palette theme from Panic and panic mode theme from Bear
MIT License
40 stars 4 forks source link

Content jumps when block heading is H3-H6 #7

Open scottcs opened 2 years ago

scottcs commented 2 years ago

Hi, I love this theme but one tiny little thing is annoying: if you click on a block that has an H3, H4, H5, or H6 heading, so that block is focused, when you click around on sub-blocks, the contents of the whole block shift up and down briefly. This happens in both dark and light mode. This doesn't happen when moving the cursor around with the keyboard, just clicking with the mouse

https://user-images.githubusercontent.com/1170636/154762278-4281a889-c4df-42a1-bb67-960c0f6cde90.mov

.

kirso commented 2 years ago

Hello, I am so sorry for such a late reply.

I checked Logseq original theme and the behaviour is the same but only across H1 - H3 which is really strange.

I haven't found any specific issue in the code, but I will investigate further. If you have any ideas please feel free to comment or submit a PR.

scottcs commented 2 years ago

Thanks for looking into it. I have since seen similar behavior in other themes, too, which lead me to believe it is an underlying issue with Logseq, as well. No worries.