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');