Skip to content

Commit 3b5561d

Browse files
committed
Width of mobile site
1 parent 892c94f commit 3b5561d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/script_2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var PLOTLY_WIDTH_DESKTOP = 914
6262
function switch_to_mobile_view() {
6363
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", TOC_EM);
6464
const body = document.querySelector("body");
65-
body.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF}px`;
65+
body.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF+12}px`;
6666
const plotlyDivs = document.querySelectorAll(".plotly-graph-div");
6767
plotlyDivs.forEach((div) => {
6868
div.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF}px`;

0 commit comments

Comments
 (0)