inspector: adaptive color picker size
This commit is contained in:
parent
2f38353483
commit
71cb7f6b55
2 changed files with 4 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue