New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All svg images in page are resized to 1.2em high #3690
Comments
I think this guardian makes sense and so far I haven't heard of any plugins breaking because of it. So I would like to keep it. So yes, please add the custom height for your plugin's SVGs to the plugin's style file. |
All right. Thanks for the answer. |
Just 2 thoughts before I go to bed
|
I use a vendor lib to render svgs and have no direct control upon the attributes/style for the svg tag. The latest release candidate shows up trouble with the svg style which makes all diagrams cut-off. This is the extension: https://www.dokuwiki.org/plugin:bpmnio |
@jdehaan Of course you have control. Your plugin's style will be more specific than the default setting. In your case it's as easy as adding the following to your styles:
Though preferably you would set your own class on the wrapper (something like |
You are fully right (🤦🏻♂️) I could manage to arrange the stuff accordingly... As you have seen I am not a css master. Thanks for the precise hint! |
Here is (another) one: jakob1111/dokuwiki-plugin-flowcharts#27 Yes, the plugins could fix this but in my opinion there is no real reason to set the default height for all svg images to 1.2em.. This is a problem for all plugins which render svg images. Maybe using a class toolbar or icon would be a better idea. The response of plugin authors is rather slow, if at all. |
Hogfather add a default height fot the SVG elements. We need to override it accordingly to dokuwiki/dokuwiki#3690
See dokuwiki/dokuwiki#3690 for background info
I got also this problem for the combo svg element I don't understand why this is made a global default. DokuWiki should also have its own namespace by applying a class to not leak this kind of rule.
It will just break all svg plugins. |
Fixing mermaid from having a 1.2em height
Me, too. I had to modify this |
@zeerd, modifying Although it appears that this setting has brought its lot of troubles, and maybe, was not the wisest thing to do, that's the way it is now and we have to deal with it. I wouldn't just override or remove the general setting, but instead add specialized rules targeted at the elements that are having issue. If you need help, you're always welcome to ask on DokuWiki forum. |
I'm so sorry for you. |
Hi,
b43eead forces svg heigth to 1.2em by adding this CSS rule to
lib/styles/all.css
The problem is that all SVG images wherever they come from are resized to 1.2em high. This is a problem with the a2s plugin for example. The as2 plugin generates images like this :
Yet, the svg is resized to 1.2em high.
In the case of the a2s plugin, I can of course add a css rule
svg.a2s { height: auto }
in he plugin style files, but I'm wondering if it should be fixed there or more generally in DokuWiki.The text was updated successfully, but these errors were encountered: