File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ site-js:
150150 - " /assets/js/dark-mode.js"
151151 - " https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"
152152 - " /assets/js/fancybox-wrapper.js"
153+ - " /assets/js/adjust-width.js"
153154
154155# ################################
155156# --- Web Analytics Section --- #
Original file line number Diff line number Diff line change 1+ document . addEventListener ( "DOMContentLoaded" , function ( )
2+ {
3+ // Remove boostrap xl grid classes (falling back on lg)
4+ document . querySelectorAll ( "[class*='xl-']" ) . forEach ( element =>
5+ {
6+ [ ...element . classList ] . forEach ( className =>
7+ {
8+ if ( / ^ .* x l - \d + $ / . test ( className ) )
9+ element . classList . remove ( className ) ;
10+ } ) ;
11+ } ) ;
12+
13+ // Remove max-width from elements with the 'utterances' class
14+ document . querySelectorAll ( ".utterances" ) . forEach ( element =>
15+ {
16+ element . style . maxWidth = "none" ;
17+ } ) ;
18+ } ) ;
19+
You can’t perform that action at this time.
0 commit comments