use auto-clearable class to set popup type

This commit is contained in:
tophf 2021-12-25 22:43:50 +03:00
parent a35405500e
commit b42da19be5
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.compact-layout #help-popup[data-type="styleSettings"] {
.compact-layout #help-popup.style-settings-popup {
width: 90%;
}
.style-settings {

View File

@ -27,7 +27,7 @@ function StyleSettings() {
$create('button', {onclick: helpPopup.close}, t('confirmClose')),
]),
]));
$('#help-popup').dataset.type = 'styleSettings';
$('#help-popup').className = 'style-settings-popup';
moveFocus(ui, 0);
function textToList(text) {