Fix jerking width of options page on scrolling

This commit is contained in:
Ilya Ig. Petrov 2018-05-09 16:26:08 +05:00
parent 868168b752
commit 4f4103405a

View File

@ -12,7 +12,12 @@ export default function append(document, { flags }) {
--cr-icon-selected: #d7d7d7;
--cr-popup-border: #bababa;
--cr-grey-panel: #f2f2f2;
${ flags.ifInsideOptionsPage ? '' : 'max-width: 24em;' }
${ flags.ifInsideOptionsPage
// Without this prop on the next line
// options page width may be jerking
// in size when scrolling is showed.
? 'width: 20em'
: 'max-width: 24em;' }
}
/* BASE ELEMENTS */