Exr0nProjects / obsidian-sage

Create interactive SageMath cells in Obsidian
MIT License
35 stars 1 forks source link

Unable to display the complete output #5

Open Huary007 opened 2 years ago

Huary007 commented 2 years ago

This is an awesome plugin.

However, when I was using it, I found that the output box was too small and the menu could not be displayed completely. For example, the "Save as PNG" and "Save as HTML" keys are missing.

image

I am currently using win10 system, obsidian version is 1.0.0, obsidian-sage plugin is using the latest version.

The same problem is found in both live preview mode and reading mode.

Now I choose to view the output image on the web when I need to view details and save the output image. This solves the problem but is somewhat inconvenient.

Exr0n commented 2 years ago

Hmm, I wasn't quite able to reproduce. I don't have a windows machine, but here's what I see on obsidian 1.0.0:

image

The output is displayed with default width, so I wonder if you have a plugin or setting that is setting the default image or embed width?

Huary007 commented 2 years ago

To exclude the effect of plugins and appearance settings, I recreated another library on my computer.

Only one plugin, obsidian-sage, is installed in this library. But the output of sage is still displayed as very small.

image

After opening the developer mode, the output box has the following properties.

image

Exr0n commented 2 years ago

Hmm, I can't seem to reproduce this right now. It's a busy time for me currently, but I will try to get back to this. In the meantime, if you figure it out, feel free to comment or send a PR. Sorry about that!