0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-14 07:51:35 -05:00

🐛 Fix visual bug for scrolls on inspect mode

This commit is contained in:
alonso.torres 2024-02-28 15:30:23 +01:00 committed by Andrey Antukh
parent 05d0d2550a
commit 54db163cd8
4 changed files with 16 additions and 2 deletions

View file

@ -109,7 +109,9 @@
[:span {:class (stl/css :layer-title)} (:name first-shape)]])]
[:div {:class (stl/css :inspect-content)}
[:& tab-container {:on-change-tab handle-change-tab
:selected @section}
:selected @section
:content-class (stl/css :tab-content)
:header-class (stl/css :tab-header)}
[:& tab-element {:id :info :title (tr "inspect.tabs.info")}
[:& attributes {:page-id page-id
:objects objects

View file

@ -96,3 +96,11 @@
flex: 1;
overflow: hidden;
}
.tab-content {
scrollbar-gutter: stable;
}
.tab-header {
margin-right: $s-12;
}

View file

@ -104,7 +104,7 @@
{:on-change-tab on-change-tab
:selected section
:collapsable false
:content-class (stl/css :content-class)
:content-class (stl/css-case :content-class true :inspect (= section :inspect))
:header-class (stl/css :tab-spacing)}
[:& tab-element {:id :design
:title (tr "workspace.options.design")}

View file

@ -34,3 +34,7 @@
gap: $s-8;
padding-top: $s-8;
}
.inspect {
scrollbar-gutter: unset;
}