jakob1111/dokuwiki-plugin-flowcharts

New DokuWiki Update messes with the Size

Opened this issue · 5 comments

just updated to Release rc2022-06-26 "Igor" RC2

and the CSS file in /lib/exe/css.php contains "svg{width:auto;height:1.2em;}" and thats messing with the hight

I would love to see even a hackey workaround—as is, all my flowcharts are very small, and I can't possibly zoom in far enough to get them legible.

arlt commented

mermaid-override.css:

.mermaid svg {
	width: 100%;
	height: auto;
}

The height line fixed it here.

The mermaid-override.css was the right place on my installation too.
But the width of 100% shows some quite large svg graphs. I commented the wudth and need the height: auto only:

.mermaid svg {
	/*
	width: 100%;
	*/
	height: auto;
}

@arlt FYI both variants of mermaid-override.css show the same behaviour (both are OK):

.mermaid svg {
	/*
	width: 100%;
	*/
	height: auto;
}

and

.mermaid svg {
	width: unset;
	height: auto;
}

oh didn't expect so many comments but yea i also just removed it, if i remember right

EDIT:
My pull request is also still open