Allow vertical scrolling in new popups
This commit is contained in:
parent
3e1b54c6f0
commit
d188795591
|
@ -36,9 +36,6 @@ label[for="extensions_autoconnect"] {
|
||||||
|
|
||||||
.extensions_info {
|
.extensions_info {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
max-height: 100%;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-right: 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.extensions_info h3 {
|
.extensions_info h3 {
|
||||||
|
|
|
@ -642,7 +642,7 @@ async function showExtensionsDetails() {
|
||||||
popup.complete(POPUP_RESULT.AFFIRMATIVE);
|
popup.complete(POPUP_RESULT.AFFIRMATIVE);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const popup = new Popup(`<div class="extensions_info">${html}</div>`, POPUP_TYPE.TEXT, '', { okButton: 'Close', wide: true, large: true, customButtons: [updateAllButton] });
|
const popup = new Popup(`<div class="extensions_info">${html}</div>`, POPUP_TYPE.TEXT, '', { okButton: 'Close', wide: true, large: true, customButtons: [updateAllButton], allowVerticalScrolling: true });
|
||||||
popupPromise = popup.show();
|
popupPromise = popup.show();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
toastr.error('Error loading extensions. See browser console for details.');
|
toastr.error('Error loading extensions. See browser console for details.');
|
||||||
|
|
|
@ -64,7 +64,7 @@ async function doTokenCounter() {
|
||||||
}, debounce_timeout.relaxed);
|
}, debounce_timeout.relaxed);
|
||||||
dialog.find('#token_counter_textarea').on('input', () => countDebounced());
|
dialog.find('#token_counter_textarea').on('input', () => countDebounced());
|
||||||
|
|
||||||
callGenericPopup(dialog, POPUP_TYPE.TEXT, '', { wide: true, large: true });
|
callGenericPopup(dialog, POPUP_TYPE.TEXT, '', { wide: true, large: true, allowVerticalScrolling: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1432,7 +1432,7 @@ export function registerDebugFunction(functionId, name, description, func) {
|
||||||
|
|
||||||
async function showDebugMenu() {
|
async function showDebugMenu() {
|
||||||
const template = await renderTemplateAsync('debug', { functions: debug_functions });
|
const template = await renderTemplateAsync('debug', { functions: debug_functions });
|
||||||
callGenericPopup(template, POPUP_TYPE.TEXT, '', { wide: true, large: true });
|
callGenericPopup(template, POPUP_TYPE.TEXT, '', { wide: true, large: true, allowVerticalScrolling: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
switchUiMode();
|
switchUiMode();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="scrollY height100p paddingLeftRight5">
|
<div>
|
||||||
<h3 data-i18n="Debug Menu">Debug Menu</h3>
|
<h3 data-i18n="Debug Menu">Debug Menu</h3>
|
||||||
<div data-i18n="Debug Warning">
|
<div data-i18n="Debug Warning">
|
||||||
Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.
|
Functions in this category are for advanced users only. Don't click anything if you're not sure about the consequences.
|
||||||
|
|
Loading…
Reference in New Issue