jakob1111 / dokuwiki-plugin-flowcharts

Add flowcharts and diagrams to Dokuwiki with an incredibly simple syntax
GNU General Public License v2.0
7 stars 8 forks source link

New DokuWiki Update messes with the Size #27

Open Vitamin-X opened 2 years ago

Vitamin-X commented 2 years ago

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

nhenryberends commented 2 years ago

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 2 years ago

mermaid-override.css:

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

The height line fixed it here.

axelhahn commented 2 years ago

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;
}
axelhahn commented 2 years ago

@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;
}
Vitamin-X commented 1 year ago

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