From df7d8397aae3eb7fef9124a1518f92ab2ce85505 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Fri, 2 Feb 2024 01:13:39 +0100 Subject: [PATCH] Added support for settings without JS --- .vscode/extensions.json | 2 +- .../AppLayout/components/Html.astro | 4 + .../components/LanguageSelector.astro | 1 + .../AppLayout/components/Topbar.astro | 43 ++++++--- src/components/Collapsible.astro | 62 +++++++++++++ .../drakengard/_components/FolderCard.astro | 2 +- src/pages/[locale]/index.astro | 2 +- src/pages/[locale]/settings/index.astro | 90 +++++++++++++++++++ src/pages/_components/LinkCard.astro | 2 +- 9 files changed, 191 insertions(+), 17 deletions(-) create mode 100644 src/components/Collapsible.astro create mode 100644 src/pages/[locale]/settings/index.astro diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 22a1505..7f051aa 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,4 +1,4 @@ { - "recommendations": ["astro-build.astro-vscode"], + "recommendations": ["astro-build.astro-vscode", "antfu.iconify"], "unwantedRecommendations": [] } diff --git a/src/components/AppLayout/components/Html.astro b/src/components/AppLayout/components/Html.astro index 6279d89..3dafcbe 100644 --- a/src/components/AppLayout/components/Html.astro +++ b/src/components/AppLayout/components/Html.astro @@ -372,6 +372,10 @@ const { currentTheme } = Astro.locals; display: none; } } + + .when-no-js { + display: none; + }