inspector: adaptive color picker size

This commit is contained in:
jean-emmanuel 2022-01-26 18:35:36 +01:00
parent 2f38353483
commit 71cb7f6b55
2 changed files with 4 additions and 1 deletions

View file

@ -107,6 +107,7 @@ class UiSidePanel extends UiWidget {
updateWidth() {
this.container.style[this.vertical ? 'height' : 'width'] = this.width + 'rem'
this.container.style.setProperty('--sidepanel-size', this.width + 'rem')
}

View file

@ -602,7 +602,9 @@ osc-inspector-color {
.color-picker {
position: absolute;
z-index: 99;
height: 180rem;
height: calc(var(--sidepanel-size) - #{$label-width} - #{$field-height * 2});
min-height: 111rem;
max-height: 227rem;
top: 0;
right: 22rem;
left: $label-width;