From 4408ac64d752f1d6b312c7c237a45138ce471795 Mon Sep 17 00:00:00 2001
From: DrMint <29893320+DrMint@users.noreply.github.com>
Date: Mon, 29 Jan 2024 05:03:32 +0100
Subject: [PATCH] Byebye font size selector
---
.../AppLayout/components/Html.astro | 1 -
.../AppLayout/components/Topbar.astro | 31 +++----------------
src/middleware.ts | 2 +-
src/pages/_components/LinkCard.astro | 6 ++--
4 files changed, 8 insertions(+), 32 deletions(-)
diff --git a/src/components/AppLayout/components/Html.astro b/src/components/AppLayout/components/Html.astro
index ae9ad27..8b49620 100644
--- a/src/components/AppLayout/components/Html.astro
+++ b/src/components/AppLayout/components/Html.astro
@@ -18,7 +18,6 @@ const prefTheme = Astro.cookies.get("al_pref_theme")?.value;
-
+
Dark
Auto
@@ -59,35 +58,13 @@ const currentLocate = Astro.currentLocale ?? "en";
/>
-
-
@@ -182,7 +159,7 @@ const currentLocate = Astro.currentLocale ?? "en";
height: 2em;
background-color: var(--color-base-700);
- @media (max-width: 30rem) {
+ @media (max-width: 20rem) {
display: none;
}
}
diff --git a/src/middleware.ts b/src/middleware.ts
index d4e1667..1399e38 100644
--- a/src/middleware.ts
+++ b/src/middleware.ts
@@ -30,7 +30,7 @@ export const langMiddleware = defineMiddleware(
return redirection(redirectURL);
}
- if (actionLang && actionLang !== cookiePreferredLocale) {
+ if (actionLang) {
const pathnameWithoutLocale = url.pathname.substring(
currentLocale.length + 1
);
diff --git a/src/pages/_components/LinkCard.astro b/src/pages/_components/LinkCard.astro
index 5d23c29..5978ef3 100644
--- a/src/pages/_components/LinkCard.astro
+++ b/src/pages/_components/LinkCard.astro
@@ -38,14 +38,14 @@ const { icon, subtitle, title, href } = Astro.props;
display: flex;
flex-direction: column;
align-items: flex-start;
- gap: 2px;
+ gap: 0.15em;
& > h3 {
- font-size: 2em;
+ font-size: 1.5em;
}
& > p {
- font-size: 14px;
+ font-size: 0.8em;
margin-left: 2px;
}
}