From d96794493cc4ee2939b461f84a4029d5b92c1400 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Mon, 22 Nov 2021 20:32:46 -0500 Subject: Make sidebar optional --- local.css | 2 +- templates/page.tmpl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/local.css b/local.css index 4e6eabc7..4ad12b50 100644 --- a/local.css +++ b/local.css @@ -19,7 +19,7 @@ h1 { font-weight: bold } .pageheader { border: none } -#content { +body.has-sidebar #content { max-width: 38rem; margin: 0; line-height: 1.5; diff --git a/templates/page.tmpl b/templates/page.tmpl index 6df947c6..d6cd9e3e 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -107,7 +107,7 @@ // @license-end - +class="has-sidebar">
@@ -304,6 +304,9 @@ Last edited transcriptDiv.appendChild(transcriptLink) if (resources) { resources.prepend(transcriptDiv); } } + if (document.querySelector('.chat-iframe')) { + document.querySelector('.chat-iframe').innerHTML = ''; +} // @license-end -- cgit v1.2.3