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')
}