Skip to content

Commit e90b0eb

Browse files
committed
Fix horizontal scrolling in graph visualizer by constraining container height
1 parent 171d835 commit e90b0eb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

scripts/visualize_graph.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,21 @@ def generate_html(mermaid_code):
4545
.ability-box {{ background-color: #2f4f4f; border: 1px solid #00ced1; }}
4646
4747
#graph-container {{
48-
width: 100%;
48+
width: 100vw;
49+
height: calc(100vh - 60px);
4950
overflow: auto;
5051
padding: 40px;
5152
box-sizing: border-box;
53+
background-color: #0d1117;
5254
}}
5355
5456
.mermaid {{
55-
background: #0d1117;
56-
display: block;
57-
margin: 0 auto;
57+
margin: 0;
58+
display: inline-block;
5859
}}
5960
</style>
6061
</head>
61-
<body>
62+
<body style="overflow: hidden;">
6263
<div class="header">
6364
<div>
6465
<h2 style="margin:0; font-size: 1.2em;">Mythril Content Graph</h2>

0 commit comments

Comments
 (0)