From f68e5ab104807a7d2741ae0baa14e42dd0b1e84a Mon Sep 17 00:00:00 2001
From: Lamparter <71598437+Lamparter@users.noreply.github.com>
Date: Sun, 27 Apr 2025 12:46:45 +0100
Subject: [PATCH 2/4] Remove elements if they don't fit
---
src/routes/download/+page.svelte | 71 ++++++++++++++++++--------------
1 file changed, 40 insertions(+), 31 deletions(-)
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index 254527296..758236cfc 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -8,6 +8,7 @@
import { _ } from "svelte-i18n";
let isWindows = false;
+ let innerWidth = 649;
const downloadSources = [
{
@@ -16,7 +17,7 @@
"download.microsoft_store.description",
defaultI18nValues,
),
- href: `ms-windows-store://pdp/?ProductId=9nghp3dx8hdx&cid=FilesWebsite`,
+ href: `https://apps.microsoft.com/detail/9nghp3dx8hdx?mode=full`,
icon: "/branding/logo-light.svg",
darkModeIcon: "/branding/logo-dark.svg",
external: true,
@@ -24,7 +25,7 @@
{
name: $_("download.preview.title", defaultI18nValues),
description: $_("download.preview.description", defaultI18nValues),
- href: "/appinstallers/Files.preview.appinstaller",
+ href: "https://apps.microsoft.com/detail/9nsqd9pkv3ss?mode=full",
icon: "/download-sources/preview_light.svg",
darkModeIcon: "/download-sources/preview_dark.svg",
},
@@ -32,6 +33,10 @@
onMount(() => {
isWindows = navigator.userAgent.includes("Windows");
+ innerWidth = window.innerWidth;
+ window.addEventListener("resize", () => {
+ innerWidth = window.innerWidth;
+ });
});
@@ -40,43 +45,47 @@
- {$_("download.title", defaultI18nValues)}
-
- 648}
+
{$_("download.title", defaultI18nValues)}
- {$_("download.donation_description", defaultI18nValues)}
-
-
-
-
+
+
+ {/if}
From b3a4ee1cd66928b285e8401dd819e23460bdb9ae Mon Sep 17 00:00:00 2001
From: Lamparter <71598437+Lamparter@users.noreply.github.com>
Date: Sun, 27 Apr 2025 16:18:47 +0100
Subject: [PATCH 3/4] Fix?
---
src/routes/download/+page.svelte | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/routes/download/+page.svelte b/src/routes/download/+page.svelte
index 758236cfc..36c4b557d 100644
--- a/src/routes/download/+page.svelte
+++ b/src/routes/download/+page.svelte
@@ -1,7 +1,7 @@