lynchjames / obsidian-mind-map

An Obsidian plugin for displaying markdown notes as mind maps using Markmap.
MIT License
1.05k stars 73 forks source link

Bug: node text too low and is unreadable #26

Open pattman opened 3 years ago

pattman commented 3 years ago

Hi there! Love the plug in so far, but I've been having this issue that makes the plugin difficult to use. Whenever I generate a mind map the text of each node is too low and merges with the coloured strands, making the text very inconvenient to read.

2b8cebee2878c7f22c4157b4a16eca68687ce369

At first I thought it was my custom theme causing the problem, but when I reverted everything to default I still experienced the same issue.

25d17863787475c36b01eef61f5b132e6ae686a2

I also note that in the most recent update (1.1.0) the text height as well as the node heights and other values can be tweaked. I have experimented with modifying the "Node Text Line Height" value, but I don't think I understand what unit "em" represents. I have changed it to lower values like 0.5 em and higher values like 2 em but with no visible change to the issue shown in the screenshots above.

Is there any way to fix this?

Thank you!

pattman commented 3 years ago

I had a look at the mind map in the element inspector and tried to change attributes of the foreignObject class to see if that would move the text up. If I changed y=0 to other values the text would move upwards but still be cut off halfway so that doesn't seem to point to a solution. Has anyone else experienced this issue?

image

brtbt commented 3 years ago

same issue

jpeeler commented 3 years ago

Same issue, but can provide a little more context. This appears to be an issue with the scaling settings. If I change the "scale and layout" to 100% the font shows up as expected. On my 4k monitors, I have the scaling set to 150% and there the mind map rendering appears the same as shown above.