From 89dc917cb98b78266110602640829a77c4d0cf18 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 19 Feb 2025 14:13:15 +0100 Subject: [PATCH] :bug: Fix scrollbar styles in themes dropdown --- frontend/resources/styles/common/refactor/basic-rules.scss | 2 +- frontend/src/app/main/ui/workspace/tokens/theme_select.scss | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/resources/styles/common/refactor/basic-rules.scss b/frontend/resources/styles/common/refactor/basic-rules.scss index 8b43750ab..c4e8ea422 100644 --- a/frontend/resources/styles/common/refactor/basic-rules.scss +++ b/frontend/resources/styles/common/refactor/basic-rules.scss @@ -873,7 +873,7 @@ top: $s-32; left: 0; width: 100%; - max-height: $s-300; + max-height: var(--menu-max-height, $s-300); padding: $s-2; margin: 0; margin-top: $s-1; diff --git a/frontend/src/app/main/ui/workspace/tokens/theme_select.scss b/frontend/src/app/main/ui/workspace/tokens/theme_select.scss index 087347aa6..170213a36 100644 --- a/frontend/src/app/main/ui/workspace/tokens/theme_select.scss +++ b/frontend/src/app/main/ui/workspace/tokens/theme_select.scss @@ -11,7 +11,6 @@ --custom-select-bg-color: var(--menu-background-color); --custom-select-icon-color: var(--color-foreground-secondary); --custom-select-text-color: var(--menu-foreground-color); - @extend .new-scrollbar; position: relative; display: grid; grid-template-columns: 1fr auto; @@ -124,5 +123,8 @@ } .dropdown-portal { + --menu-max-height: #{$s-400}; + @extend .new-scrollbar; + position: absolute; }