mirror of https://github.com/zulip/zulip.git
help: Apply noscroll class on server side.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
1244c066ad
commit
4b87a79a7e
|
@ -37,7 +37,7 @@
|
|||
{% endblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body class="{% if noscroll %}noscroll{% endif %}">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{% extends "zerver/portico-help.html" %}
|
||||
{% set entrypoint = "help" %}
|
||||
{% set noscroll = true %}
|
||||
|
||||
{# Zulip user and API documentation. #}
|
||||
{% block title %}
|
||||
|
|
|
@ -125,6 +125,4 @@ $(".markdown").on("click", () => {
|
|||
|
||||
render_code_sections();
|
||||
|
||||
$("body").addClass("noscroll");
|
||||
|
||||
$(".highlighted")[0]?.scrollIntoView({block: "center"});
|
||||
|
|
Loading…
Reference in New Issue