From 3353cee64c8c95f67a33da4455b8cf8bf141baa2 Mon Sep 17 00:00:00 2001 From: rasm-its Date: Wed, 26 Aug 2026 03:01:12 +0200 Subject: [PATCH] fix(ui): ensure scrollable cookie settings modal and clean body layout --- src/app/(frontend)/[locale]/layout.tsx | 2 +- src/components/CustomCookieBanner.tsx | 42 ++++++++++++++++---------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/app/(frontend)/[locale]/layout.tsx b/src/app/(frontend)/[locale]/layout.tsx index 4d0a077..731a73b 100644 --- a/src/app/(frontend)/[locale]/layout.tsx +++ b/src/app/(frontend)/[locale]/layout.tsx @@ -99,7 +99,7 @@ export default async function LocaleLayout({ children, params }: LayoutProps) { return ( - +
{!showSettings ? ( -
-
+
+
- +

@@ -56,7 +56,7 @@ export function CustomCookieBanner() {

-
+
) : ( -
-
-
- +
+
+
+
+ +
+

+ {texts.settingsTitle} +

-

- {texts.settingsTitle} -

+
-
    +
      {CONSENT_CATEGORIES.map((cat) => { const isChecked = cat === 'necessary' ? true : !!choices[cat] const isDisabled = cat === 'necessary' @@ -103,7 +113,7 @@ export function CustomCookieBanner() {
    • !isDisabled && toggle(cat)} - className={`flex items-start justify-between gap-4 p-4 border border-[#333333] bg-[#262626] ${ + className={`flex items-start justify-between gap-4 p-3.5 border border-[#333333] bg-[#262626] ${ !isDisabled ? 'cursor-pointer hover:border-[#FFED00]' : 'opacity-90' } transition-colors`} > @@ -111,7 +121,7 @@ export function CustomCookieBanner() {
      {catData.title}
      -

      +

      {catData.description}