Fix Layer Tree panel CSS to allow scrolling (#208)

This commit is contained in:
Keavon Chambers 2021-06-13 12:29:50 -07:00 committed by GitHub
parent ca712813c3
commit 741a712972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 29 deletions

View file

@ -44,6 +44,8 @@
<style lang="scss">
.layer-tree-panel {
min-height: 0;
.options-bar {
height: 32px;
flex: 0 0 auto;
@ -59,39 +61,44 @@
}
}
.layer-row {
display: flex;
height: 36px;
align-items: center;
margin: 0 8px;
.layer-tree {
overflow: auto;
.layer {
.layer-row {
display: flex;
height: 36px;
align-items: center;
background: var(--color-5-dullgray);
border-radius: 4px;
width: 100%;
height: 100%;
margin-left: 4px;
padding-left: 16px;
}
.selected {
background: var(--color-accent);
color: var(--color-f-white);
}
& + .layer-row {
margin-top: 2px;
}
.layer-thumbnail {
width: 64px;
height: 100%;
background: white;
}
.layer-type-icon {
margin: 0 8px;
flex: 0 0 auto;
.layer {
display: flex;
align-items: center;
background: var(--color-5-dullgray);
border-radius: 4px;
width: 100%;
height: 100%;
margin-left: 4px;
padding-left: 16px;
}
.selected {
background: var(--color-accent);
color: var(--color-f-white);
}
& + .layer-row {
margin-top: 2px;
}
.layer-thumbnail {
width: 64px;
height: 100%;
background: white;
}
.layer-type-icon {
margin: 0 8px;
}
}
}
}

View file

@ -129,6 +129,7 @@
flex: 1 1 100%;
display: flex;
flex-direction: column;
min-height: 0;
}
}
</style>