mirror of
https://github.com/penpot/penpot.git
synced 2026-08-29 08:08:46 +00:00
🐛 Fix avoid empty space at the bottom when there are many layers
This commit is contained in:
parent
4c9aeab65e
commit
92b88d5da5
@ -114,6 +114,7 @@
|
||||
display: grid;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-block-size: 0;
|
||||
outline: $b-1 solid var(--tab-panel-outline-color);
|
||||
}
|
||||
|
||||
|
||||
@ -97,9 +97,7 @@
|
||||
sitemap-height
|
||||
(if sitemap-collapsed? 32 height)]
|
||||
|
||||
[:article {:class (stl/css :layers-tab)
|
||||
:style {:--height (dm/str height "px")}}
|
||||
|
||||
[:article {:class (stl/css :layers-tab)}
|
||||
[:> sitemap* {:layout layout
|
||||
:height sitemap-height
|
||||
:collapsed sitemap-collapsed?
|
||||
|
||||
@ -79,13 +79,15 @@
|
||||
|
||||
.layers-tab {
|
||||
padding-block-start: var(--sp-xs);
|
||||
overflow-x: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-block-size: 0;
|
||||
}
|
||||
|
||||
.layers-tab-resize-area {
|
||||
background-color: var(--color-background-primary);
|
||||
position: absolute;
|
||||
inset-inline-start: 0;
|
||||
flex: 0 0 auto;
|
||||
inline-size: 100%;
|
||||
padding: px2rem(3) 0 px2rem(1);
|
||||
block-size: $sz-6;
|
||||
@ -120,11 +122,16 @@
|
||||
.left-sidebar-content {
|
||||
grid-area: content;
|
||||
inset-inline-end: calc(-1 * var(--sp-s));
|
||||
min-block-size: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.left-sidebar-tabs {
|
||||
--tabs-nav-padding-inline-start: var(--sp-m);
|
||||
--tabs-nav-padding-inline-end: var(--sp-m);
|
||||
|
||||
block-size: 100%;
|
||||
min-block-size: 0;
|
||||
}
|
||||
|
||||
.left-sidebar-resize-area {
|
||||
|
||||
@ -31,11 +31,10 @@
|
||||
}
|
||||
|
||||
.tool-window-content {
|
||||
--calculated-height: calc(#{px2rem(136)} + var(--height, #{$sz-200}));
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
block-size: calc(100vh - var(--calculated-height));
|
||||
flex: 1 1 auto;
|
||||
min-block-size: 0;
|
||||
inline-size: calc(var(--left-sidebar-width) + var(--depth) * var(--layer-indentation-size));
|
||||
overflow: auto;
|
||||
scrollbar-gutter: stable;
|
||||
@ -117,6 +116,10 @@
|
||||
|
||||
.layers {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 1 auto;
|
||||
min-block-size: 0;
|
||||
}
|
||||
|
||||
.replace-wrapper {
|
||||
|
||||
@ -15,7 +15,8 @@
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
flex: 0 0 auto;
|
||||
flex-shrink: 0;
|
||||
inline-size: 100%;
|
||||
block-size: var(--height, $sz-200);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user