From 653bc66b8ff3ca3ccb36e7ce153eeedd58daba3f Mon Sep 17 00:00:00 2001 From: Eva Date: Tue, 25 Jul 2023 12:35:24 +0200 Subject: [PATCH] :bug: Fix dropdown width --- CHANGES.md | 2 +- .../main/partials/sidebar-element-options.scss | 16 ++++++++++++++++ .../workspace/sidebar/options/menus/layer.cljs | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 112f1f52e..033dcc348 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -91,7 +91,7 @@ - Fix error when a user different than the thread creator edits a comment [Taiga #5647](https://tree.taiga.io/project/penpot/issue/5647) - Fix unnecessary button [Taiga #3312](https://tree.taiga.io/project/penpot/issue/3312) - Fix copy color information in several formats [Taiga #4723](https://tree.taiga.io/project/penpot/issue/4723) - +- Fix dropdown width [Taiga #5541](https://tree.taiga.io/project/penpot/issue/5541) ### :arrow_up: Deps updates - Update google fonts catalog (at 2023/07/06) [Taiga #5592](https://tree.taiga.io/project/penpot/issue/5592) diff --git a/frontend/resources/styles/main/partials/sidebar-element-options.scss b/frontend/resources/styles/main/partials/sidebar-element-options.scss index 7febf9415..ce5ab80fa 100644 --- a/frontend/resources/styles/main/partials/sidebar-element-options.scss +++ b/frontend/resources/styles/main/partials/sidebar-element-options.scss @@ -316,6 +316,22 @@ &:hover { border: 1px solid $color-gray-20; } + + &.no-check { + .custom-select-dropdown { + width: 100%; + min-width: unset; + .check-icon { + display: none; + } + li.checked-element { + padding-left: 0.5rem; + &.is-selected { + background-color: $color-primary; + } + } + } + } } .opened { border: 1px solid $color-primary; diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/layer.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/layer.cljs index f8c8bb32d..be41c258d 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/layer.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/layer.cljs @@ -152,7 +152,7 @@ [:div.element-set-content [:div.row-flex [:& select - {:class "flex-grow" + {:class "flex-grow no-check" :default-value selected-blend-mode :options options :on-change handle-change-blend-mode