mirror of
https://github.com/penpot/penpot.git
synced 2026-08-28 07:38:42 +00:00
🐛 Fix visual bug for scrolls on inspect mode
This commit is contained in:
parent
05d0d2550a
commit
54db163cd8
@ -109,7 +109,9 @@
|
|||||||
[:span {:class (stl/css :layer-title)} (:name first-shape)]])]
|
[:span {:class (stl/css :layer-title)} (:name first-shape)]])]
|
||||||
[:div {:class (stl/css :inspect-content)}
|
[:div {:class (stl/css :inspect-content)}
|
||||||
[:& tab-container {:on-change-tab handle-change-tab
|
[:& 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")}
|
[:& tab-element {:id :info :title (tr "inspect.tabs.info")}
|
||||||
[:& attributes {:page-id page-id
|
[:& attributes {:page-id page-id
|
||||||
:objects objects
|
:objects objects
|
||||||
|
|||||||
@ -96,3 +96,11 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-header {
|
||||||
|
margin-right: $s-12;
|
||||||
|
}
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
{:on-change-tab on-change-tab
|
{:on-change-tab on-change-tab
|
||||||
:selected section
|
:selected section
|
||||||
:collapsable false
|
: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)}
|
:header-class (stl/css :tab-spacing)}
|
||||||
[:& tab-element {:id :design
|
[:& tab-element {:id :design
|
||||||
:title (tr "workspace.options.design")}
|
:title (tr "workspace.options.design")}
|
||||||
|
|||||||
@ -34,3 +34,7 @@
|
|||||||
gap: $s-8;
|
gap: $s-8;
|
||||||
padding-top: $s-8;
|
padding-top: $s-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inspect {
|
||||||
|
scrollbar-gutter: unset;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user