From 1460ff4a611886bd0700f1e16a0ad9050dab8161 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Fri, 15 Dec 2023 12:33:51 -0800 Subject: [PATCH] front page redesign: misc --- static/style.css | 7 +------ static/topology.js | 4 ++-- templates/base.html | 5 ++++- templates/index.html | 11 ++++++++--- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/static/style.css b/static/style.css index a6222be..6af6de1 100644 --- a/static/style.css +++ b/static/style.css @@ -85,12 +85,6 @@ pre .value, code .value, code.value { margin-bottom: 1em; } -#front .container { - width: 100%; - margin: 0; - padding: 0; -} - #front .row { padding: 1em; } @@ -169,6 +163,7 @@ pre .value, code .value, code.value { .front-buttons label { font-size: 1em; + white-space: nowrap; } .front-buttons label img { diff --git a/static/topology.js b/static/topology.js index 033a621..c970565 100644 --- a/static/topology.js +++ b/static/topology.js @@ -1,7 +1,7 @@ let sketch = function(p) { + // this excludes the scroll bar. p.windowWidth and window.innerWidth etc + // include it, which makes the canvas too wide and causes horizontal scrolling. let width = document.documentElement.clientWidth; - // this includes the scroll bar, which is too wide and causes horizontal scrolling - // let width = p.windowWidth; let height = 900; let offset = 300; diff --git a/templates/base.html b/templates/base.html index acc4fe6..99536a1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,7 +31,10 @@ {% endif %} {% endwith %} -
+