diff --git a/blog/src/components/Logo.astro b/blog/src/components/Logo.astro index 0aa1781..b120f38 100644 --- a/blog/src/components/Logo.astro +++ b/blog/src/components/Logo.astro @@ -17,4 +17,10 @@ #logo-text { font-weight: bold; } + + @media only screen and (max-width: 800px) { + #logo-text { + color: white + } + } diff --git a/blog/src/islands/DeleteUser.tsx b/blog/src/islands/DeleteUser.tsx index 59a27a8..53604d4 100644 --- a/blog/src/islands/DeleteUser.tsx +++ b/blog/src/islands/DeleteUser.tsx @@ -34,7 +34,7 @@ export default function DeleteUser() { {error &&
{error}
} {showModal && ( -{error}
} + + ); } \ No newline at end of file diff --git a/blog/src/islands/RegisterForm.tsx b/blog/src/islands/RegisterForm.tsx index c5d4379..b4d8a05 100644 --- a/blog/src/islands/RegisterForm.tsx +++ b/blog/src/islands/RegisterForm.tsx @@ -72,6 +72,18 @@ export default function RegisterForm() { Du kannst deine Daten jederzeit löschen oder die E-Mail Benachrichtigung deaktivieren. {error &&{error}
} + + ); } diff --git a/blog/src/islands/ToggleSubscription.tsx b/blog/src/islands/ToggleSubscription.tsx index 475999e..1086d78 100644 --- a/blog/src/islands/ToggleSubscription.tsx +++ b/blog/src/islands/ToggleSubscription.tsx @@ -15,11 +15,15 @@ export default function ToggleSubscription() { const handleSubscription = async () => { setError(''); + let hasError = false try { api.toggleSubscription(subscription) } catch (err) { setError(err instanceof Error ? err.message : 'Update'); + hasError = true + } finally { + // if (!hasError) // TODO: snackbar } }; @@ -30,7 +34,9 @@ export default function ToggleSubscription() { return ( -