docsy icon indicating copy to clipboard operation
docsy copied to clipboard

Is it possible to adjust the height of a rendered markmap?

Open ajfriesen opened this issue 2 years ago • 8 comments

When using MarkMaps they are always a fixed size. We have huge whitespace below the created mindmap svg. Especially when you create markmaps with a lot of horizontal content which could easily be shown on the page. But the whitespace is not allowing that.

Is it somehow possible to increase the height of the rendered markmap?

ajfriesen avatar Aug 03 '22 12:08 ajfriesen

@llhhbc you added the MarkMap integration, any ideas? I can take a look too.

LisaFC avatar Aug 03 '22 17:08 LisaFC

Have just seen that the height is hardcoded here: https://github.com/google/docsy/blob/main/layouts/partials/scripts.html#L16

I need to fix something else in that file, and then I'll see if I can make it more flexible.

LisaFC avatar Aug 11 '22 17:08 LisaFC

Any update on this?

ajfriesen avatar Aug 31 '22 22:08 ajfriesen

ugh, sorry, I took over the fix but didn't see this issue. The other fix is in https://github.com/google/docsy/pull/1175, but I'm also checking on something else so I'll keep this in mind now!

Short-term, I think you could change that height in the /layouts/partials/scripts.html file

emckean avatar Sep 02 '22 19:09 emckean

Any updates on making this more flexible?

blake-glyd avatar Jan 02 '23 23:01 blake-glyd

@LisaFC Sorry, the previous level was limited, and it could only be integrated, but it could not be extended.

llhhbc avatar Mar 01 '23 14:03 llhhbc