Browse Source

Width of mobile site

pull/144/merge
Jure Šorn 4 months ago
parent
commit
b545fca6b3
1 changed files with 1 additions and 1 deletions
  1. 2
      web/script_2.js

2
web/script_2.js

@ -62,7 +62,7 @@ var PLOTLY_WIDTH_DESKTOP = 914
function switch_to_mobile_view() {
$(`code:contains(ToC)`).html(TOC_MOBILE).css("line-height", TOC_EM);
const body = document.querySelector("body");
body.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF+12}px`;
body.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF+9}px`;
const plotlyDivs = document.querySelectorAll(".plotly-graph-div");
plotlyDivs.forEach((div) => {
div.style["width"] = `${TOC_SCREEN_WIDTH_CUTOFF}px`;

Loading…
Cancel
Save