Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help: Apply noscroll class on server side.
Anders Kaseorg4b87a79a7ee7
diff --git a/templates/zerver/base.html b/templates/zerver/base.htmlindex f923f8c6603..6063dc4089e 100644--- a/templates/zerver/base.html+++ b/templates/zerver/base.html@@ -37,7 +37,7 @@{% endblock %}</head>- <body>+ <body class="{% if noscroll %}noscroll{% endif %}">{% block content %}{% endblock %}diff --git a/templates/zerver/documentation_main.html b/templates/zerver/documentation_main.htmlindex 39de11db869..26024cddf2d 100644--- a/templates/zerver/documentation_main.html+++ b/templates/zerver/documentation_main.html@@ -1,5 +1,6 @@{% extends "zerver/portico-help.html" %}{% set entrypoint = "help" %}+{% set noscroll = true %}{# Zulip user and API documentation. #}{% block title %}diff --git a/web/src/portico/help.js b/web/src/portico/help.jsindex 0f415a72dce..e8b2ea78635 100644--- a/web/src/portico/help.js+++ b/web/src/portico/help.js@@ -125,6 +125,4 @@ $(".markdown").on("click", () => {render_code_sections();-$("body").addClass("noscroll");-$(".highlighted")[0]?.scrollIntoView({block: "center"});