Skip to content

Commit

Permalink
html: Add max height/max width to SVGs (fixes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Knorr committed Jan 10, 2022
1 parent 6f0e414 commit 585350d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rng2doc/xslt/html.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@
position: relative;
}

.graphviz-svg svg {
width: auto;
height: auto;
max-width: 100%;
max-height: 75vh;
}

#index {
margin-bottom: 40px;
}
Expand Down

0 comments on commit 585350d

Please sign in to comment.