From 585350d0cff859bae1076ff5bb9866dffa6215ee Mon Sep 17 00:00:00 2001 From: Stefan Knorr Date: Mon, 10 Jan 2022 20:44:54 +0100 Subject: [PATCH] html: Add max height/max width to SVGs (fixes #21) --- src/rng2doc/xslt/html.xslt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rng2doc/xslt/html.xslt b/src/rng2doc/xslt/html.xslt index 99932c5..5c841de 100644 --- a/src/rng2doc/xslt/html.xslt +++ b/src/rng2doc/xslt/html.xslt @@ -363,6 +363,13 @@ position: relative; } + .graphviz-svg svg { + width: auto; + height: auto; + max-width: 100%; + max-height: 75vh; + } + #index { margin-bottom: 40px; }