Improve height restriction for popup config dialog (#721)
* Improve height restriction for popup config dialog Noticed unnecessary overflow in Github Dark's config dialog. We should allow it to utilize available height. * Shave off 2px to allow for borders without overflow
This commit is contained in:
parent
19ee4d46bc
commit
19c71868a0
|
@ -433,8 +433,8 @@ function configDialog(style) {
|
|||
const MIN_HEIGHT = 250 + PADDING;
|
||||
colorpicker.remove();
|
||||
|
||||
width = constrain(MIN_WIDTH, 800, width + PADDING);
|
||||
height = constrain(MIN_HEIGHT, 600, height + PADDING);
|
||||
width = constrain(MIN_WIDTH, 798, width + PADDING);
|
||||
height = constrain(MIN_HEIGHT, 598, height + PADDING);
|
||||
document.body.style.setProperty('min-width', width + 'px', 'important');
|
||||
document.body.style.setProperty('min-height', height + 'px', 'important');
|
||||
}
|
||||
|
|
|
@ -150,6 +150,7 @@
|
|||
justify-content: center;
|
||||
}
|
||||
#message-box.stylus-popup > div {
|
||||
max-height: 570px;
|
||||
max-width: 90vw;
|
||||
top: auto;
|
||||
right: auto;
|
||||
|
|
Loading…
Reference in New Issue
Block a user