From 195d8f95c0a0fc69891ae2caa64945ffb0a3fe91 Mon Sep 17 00:00:00 2001 From: itsrubberduck Date: Sun, 5 Oct 2025 17:24:46 +0200 Subject: [PATCH] hide cookie consent on login --- app/components/CookieConsentBanner.vue | 3 ++- app/pages/login.vue | 13 ++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/components/CookieConsentBanner.vue b/app/components/CookieConsentBanner.vue index 3f3874f..2e6cdd1 100644 --- a/app/components/CookieConsentBanner.vue +++ b/app/components/CookieConsentBanner.vue @@ -110,7 +110,7 @@ watch( } ); -const restrictedRoute = computed(() => route.path.startsWith('/classroom') || route.path.startsWith('/pm')); +const restrictedRoute = computed(() => route.path.startsWith('/classroom') || route.path.startsWith('/pm') || route.path.startsWith('/login')); const showManageButton = computed(() => hasConsent.value && !isDialogVisible.value && !restrictedRoute.value); @@ -427,4 +427,5 @@ const openManager = () => { white-space: nowrap; border: 0; } + diff --git a/app/pages/login.vue b/app/pages/login.vue index f24a126..cfc1d47 100644 --- a/app/pages/login.vue +++ b/app/pages/login.vue @@ -13,7 +13,7 @@
+ class="mx-auto flex h-full w-full max-w-6xl flex-1 flex-col overflow-hidden sm:py-8 sm:px-8 lg:flex-row lg:items-stretch lg:py-12 lg:pl-0 min-h-0">