From 90bdb5384d9e76fa50458f4f7277e9d218c81b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20K=C3=BCng?= Date: Tue, 3 Mar 2026 11:49:40 +0100 Subject: [PATCH] fix(front-end): color selector --- .../color-selector/color-selector.component.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/app/shared/components/color-selector/color-selector.component.scss b/frontend/src/app/shared/components/color-selector/color-selector.component.scss index 3c487dc..9d0843a 100644 --- a/frontend/src/app/shared/components/color-selector/color-selector.component.scss +++ b/frontend/src/app/shared/components/color-selector/color-selector.component.scss @@ -47,6 +47,10 @@ box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; width: 230px; /* Increased size */ + max-height: min(62vh, 360px); + overflow-y: auto; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; // Little triangle arrow &::before { @@ -67,6 +71,7 @@ transform: translate(-50%, -50%); width: 280px; /* Provide enough width for touch targets */ max-width: 90vw; /* Safety constraint */ + max-height: min(72vh, 420px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Stronger shadow for modal feel */ /* Hide arrow on mobile since it's detached from trigger */ @@ -76,6 +81,12 @@ } } +@media (max-height: 720px) { + .color-popup { + max-height: min(56vh, 300px); + } +} + .category { margin-bottom: 12px;