Allow vertical scroll in import menu

This commit is contained in:
Cohee
2025-05-27 22:31:16 +03:00
parent 4bec90abb5
commit 817ae20c3b

View File

@@ -12257,9 +12257,7 @@ jQuery(async function () {
$(document).on('click', '.external_import_button, #external_import_button', async () => {
const html = await renderTemplateAsync('importCharacters');
/** @type {string?} */
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 });
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { allowVerticalScrolling: true, wider: true, okButton: $('#popup_template').attr('popup-button-import'), rows: 4 });
if (!input) {
console.debug('Custom content import cancelled');
@@ -12267,7 +12265,7 @@ jQuery(async function () {
}
// break input into one input per line
const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0);
const inputs = String(input).split('\n').map(x => x.trim()).filter(x => x.length > 0);
for (const url of inputs) {
let request;