From edefc9e2e4eae0f514995da577d12ab9c64900f8 Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Wed, 23 Dec 2020 14:00:22 +0800 Subject: [PATCH] vdoc: minor css and js fixes (#7485) --- cmd/tools/vdoc-resources/doc.css | 3 +++ cmd/tools/vdoc-resources/doc.js | 1 + 2 files changed, 4 insertions(+) diff --git a/cmd/tools/vdoc-resources/doc.css b/cmd/tools/vdoc-resources/doc.css index 2948f5a57a..c847ce6363 100644 --- a/cmd/tools/vdoc-resources/doc.css +++ b/cmd/tools/vdoc-resources/doc.css @@ -267,6 +267,9 @@ body { padding: 1rem; overflow: hidden; } +.doc-content img { + width: 100%; +} .doc-content p { line-height: 1.4; } diff --git a/cmd/tools/vdoc-resources/doc.js b/cmd/tools/vdoc-resources/doc.js index 4033799ca5..7fb63d19a6 100644 --- a/cmd/tools/vdoc-resources/doc.js +++ b/cmd/tools/vdoc-resources/doc.js @@ -64,6 +64,7 @@ function setupMobileToggle() { } function setupDarkMode() { + var html = document.getElementsByTagName('html')[0]; var darkModeToggle = document.getElementById('dark-mode-toggle'); darkModeToggle.addEventListener('click', function() { html.classList.toggle('dark');