Skip to content

Commit

Permalink
Merge pull request #74 from Code-Inspect/max-width-fix
Browse files Browse the repository at this point in the history
fixed user settings overriding max diagram width
  • Loading branch information
EagleoutIce authored Apr 13, 2024
2 parents bde8c38 + bf01441 commit c7d6df9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/diagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ function createDocument(mermaid: string) {
<style>
.mermaid svg {
position: absolute;
max-width: 100% !important;
max-height: 100% !important;
width: 100%;
height: 100%;
top: 0;
Expand Down

0 comments on commit c7d6df9

Please sign in to comment.