File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ p.center {
317317 }
318318}
319319
320+ svg .graphviz {
321+ width : 100% ;
322+ }
323+
320324// Dropdowns
321325a .dropdown-trigger {
322326 padding : 4px 5px ;
Original file line number Diff line number Diff line change @@ -198,7 +198,12 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
198198 let vizInstance
199199 [ ...document . querySelectorAll ( "pre[class=graphviz]" ) ] . forEach ( async ( x ) => {
200200 if ( ! vizInstance ) vizInstance = await Viz . instance ( )
201- const svg = vizInstance . renderSVGElement ( x . innerText )
201+ const options = {
202+ graphAttributes : {
203+ bgcolor : "transparent" ,
204+ } ,
205+ }
206+ const svg = vizInstance . renderSVGElement ( x . innerText , options )
202207 x . parentNode . insertBefore ( svg , x ) ;
203208 x . style . display = 'none'
204209 } ) ;
You can’t perform that action at this time.
0 commit comments