From 8ad7f91e48f866463bf041bc5f1ecd0bc09e83ec Mon Sep 17 00:00:00 2001 From: doup Date: Tue, 3 Dec 2024 09:29:05 +0100 Subject: [PATCH] Hide assets/examples filters for non-JS users --- static/assets.js | 2 ++ templates/assets.html | 24 +++++++++++++----------- templates/layouts/examples.html | 4 ++-- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/static/assets.js b/static/assets.js index 6ba76fa9f3..75c7ff3404 100644 --- a/static/assets.js +++ b/static/assets.js @@ -142,6 +142,8 @@ if (versionsSelect) { } +document.querySelector('[data-assets-filters]').classList.remove('hidden'); + document .querySelector('#assets-filter') .addEventListener("change", (item) => { diff --git a/templates/assets.html b/templates/assets.html index 838c0e84ec..0e667aa8c3 100644 --- a/templates/assets.html +++ b/templates/assets.html @@ -6,17 +6,19 @@ {% block page_content %}
{{ assets_macros::init_svg() }} - -
- - +
A collection of third-party Bevy assets, plugins, learning resources, and apps made by the community. If you diff --git a/templates/layouts/examples.html b/templates/layouts/examples.html index f865cf6a48..b6d43c63b7 100644 --- a/templates/layouts/examples.html +++ b/templates/layouts/examples.html @@ -8,7 +8,7 @@
{% block intro %}{% endblock intro %}
-