From 50dbe6ab127e6b6ffa1ad04b869ca6651885e7c7 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 11 Dec 2025 21:34:18 +0100 Subject: [PATCH] :bug: Fix horizontal scroll on layer panel (#7956) --- CHANGES.md | 1 + .../src/app/main/ui/workspace/sidebar/layer_item.scss | 3 ++- frontend/src/app/main/ui/workspace/sidebar/layers.scss | 8 +++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b9e4471cfa..011361113a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -94,6 +94,7 @@ example. It's still usable as before, we just removed the example. - Fix incorrect interaction betwen hower and scroll on assets sidebar [Taiga #12389](https://tree.taiga.io/project/penpot/issue/12389) - Fix switch variants with paths [Taiga #12841](https://tree.taiga.io/project/penpot/issue/12841) - Fix referencing typography tokens on font-family tokens [Taiga #12492](https://tree.taiga.io/project/penpot/issue/12492) +- Fix horizontal scroll on layer panel [Taiga #12843](https://tree.taiga.io/project/penpot/issue/12843) ## 2.11.1 diff --git a/frontend/src/app/main/ui/workspace/sidebar/layer_item.scss b/frontend/src/app/main/ui/workspace/sidebar/layer_item.scss index e37644ad63..43455c1bd0 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layer_item.scss +++ b/frontend/src/app/main/ui/workspace/sidebar/layer_item.scss @@ -5,6 +5,7 @@ // Copyright (c) KALEIDOS INC @use "refactor/common-refactor.scss" as deprecated; +@use "ds/_utils.scss" as *; .layer-row { --layer-indentation-size: calc(#{deprecated.$s-4} * 6); @@ -87,7 +88,7 @@ height: deprecated.$s-32; width: calc(100% - (var(--depth) * var(--layer-indentation-size))); cursor: pointer; - + min-width: px2rem(140); &.filtered { width: calc(100% - deprecated.$s-12); } diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.scss b/frontend/src/app/main/ui/workspace/sidebar/layers.scss index 89818cf9c5..353eaf009e 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.scss +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.scss @@ -211,9 +211,7 @@ overflow-x: auto; overflow-y: overlay; scrollbar-gutter: stable; - - .element-list { - width: var(--left-sidebar-width); - display: grid; - } +} +.element-list { + display: grid; }