From db20fe4b744cff07371b8e91a6d9febc64240ed9 Mon Sep 17 00:00:00 2001 From: GeekCorner <45696571+GeekCornerGH@users.noreply.github.com> Date: Tue, 26 Aug 2025 10:31:14 +0200 Subject: [PATCH] fix: Flathub showing on twilight page --- src/components/download/DownloadScript.astro | 4 ++++ src/components/download/PlatformDownload.astro | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/download/DownloadScript.astro b/src/components/download/DownloadScript.astro index a21d86b4..b3d57db9 100644 --- a/src/components/download/DownloadScript.astro +++ b/src/components/download/DownloadScript.astro @@ -74,6 +74,10 @@ const twilightInfoElem = document.getElementById('twilight-info') twilightInfoElem?.setAttribute('data-twilight', 'true') + // Hide Flathub button + const flathubButtonElem = document.getElementById('download-from-flathub'); + flathubButtonElem?.classList.add('hidden'); + // Update UI to show twilight mode with animation const titleElem = document.getElementById('download-title') if (titleElem) { diff --git a/src/components/download/PlatformDownload.astro b/src/components/download/PlatformDownload.astro index c974fa5d..5d2df13a 100644 --- a/src/components/download/PlatformDownload.astro +++ b/src/components/download/PlatformDownload.astro @@ -78,6 +78,7 @@ function getReleaseLink(releases: PlatformReleases, { os, cpu }: { os: string; c { platform === 'linux' && (