obsidian-desmos icon indicating copy to clipboard operation
obsidian-desmos copied to clipboard

Snippet to center graphs doesn't work

Open desk7 opened this issue 1 year ago • 3 comments

Describe the bug Snippet to center graphs doesn't work. It seems that the rendered svg has no longer desmos-graph class, so the snippet has no effect.

Expected behavior Centered graphs

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Obsidian Version: 1.1.16
  • Plugin Version: 0.6.4

desk7 avatar Mar 27 '23 16:03 desk7

Are you using the one listed in https://github.com/Nigecat/obsidian-desmos#custom-styling?

Since that seems to work fine for me with the current version (0.6.4): Off: image

On: image

Could you include an image of what happens on your end and an example which causes it?

Nigecat avatar Mar 28 '23 02:03 Nigecat

Yes I use the snippet you suggested. I have to things to report. I used a vanilla vault to test the snippet with internet access.

  1. the graph is centered in reading mode but not in editing mode. Immagine 2023-03-29 171153
  2. if I edit the desmos code without triggering the rendering of a new plot (for example I type a random key and then delete it; or I modify the code so that I get the code of an already cached plot), the plot in the reading mode moves to left.

obs

I hope the description of the issue is clear.

desk7 avatar Mar 29 '23 16:03 desk7