diff --git a/public/css/st-tailwind.css b/public/css/st-tailwind.css index 5edd3059d..2591e6c42 100644 --- a/public/css/st-tailwind.css +++ b/public/css/st-tailwind.css @@ -572,3 +572,23 @@ textarea:disabled { text-align: center; padding: 5px; } + +ul.li-padding-b-1 li { + padding-bottom: 1em; +} + +ul.li-padding-b-2 li { + padding-bottom: 2em; +} + +ul.li-padding-b-5 li { + padding-bottom: 5em; +} + +ul.li-padding-bot5 li { + padding-bottom: 5px; +} + +ul.li-padding-bot10 li { + padding-bottom: 10px; +} diff --git a/public/script.js b/public/script.js index 060cc9238..eaa94404b 100644 --- a/public/script.js +++ b/public/script.js @@ -10539,7 +10539,7 @@ jQuery(async function () { const html = await renderTemplateAsync('importCharacters'); /** @type {string?} */ - const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wide: true, okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 }); + const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wider: true, okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 }); if (!input) { console.debug('Custom content import cancelled'); diff --git a/public/scripts/popup.js b/public/scripts/popup.js index 17d380367..f151a78ab 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -48,7 +48,7 @@ export class Popup { * @param {string} inputValue - Value to set the input to. * @param {PopupOptions} options - Options for the popup. */ - constructor(text, type, inputValue = '', { okButton, cancelButton, rows, wide, large, allowHorizontalScrolling, allowVerticalScrolling } = {}) { + constructor(text, type, inputValue = '', { okButton, cancelButton, rows, wide, wider, large, allowHorizontalScrolling, allowVerticalScrolling } = {}) { this.type = type; /**@type {HTMLTemplateElement}*/ @@ -64,6 +64,7 @@ export class Popup { this.cancel = this.dom.querySelector('.dialogue_popup_cancel'); if (wide) dlg.classList.add('wide_dialogue_popup'); + if (wider) dlg.classList.add('wider_dialogue_popup'); if (large) dlg.classList.add('large_dialogue_popup'); if (allowHorizontalScrolling) dlg.classList.add('horizontal_scrolling_dialogue_popup'); if (allowVerticalScrolling) dlg.classList.add('vertical_scrolling_dialogue_popup'); @@ -225,12 +226,12 @@ export class Popup { * @param {PopupOptions} options - Options for the popup. * @returns */ -export function callGenericPopup(text, type, inputValue = '', { okButton, cancelButton, rows, wide, large, allowHorizontalScrolling, allowVerticalScrolling } = {}) { +export function callGenericPopup(text, type, inputValue = '', { okButton, cancelButton, rows, wide, wider, large, allowHorizontalScrolling, allowVerticalScrolling } = {}) { const popup = new Popup( text, type, inputValue, - { okButton, cancelButton, rows, wide, large, allowHorizontalScrolling, allowVerticalScrolling }, + { okButton, cancelButton, rows, wide, wider, large, allowHorizontalScrolling, allowVerticalScrolling }, ); return popup.show(); } diff --git a/public/scripts/templates/importCharacters.html b/public/scripts/templates/importCharacters.html index 453516ddb..64707a631 100644 --- a/public/scripts/templates/importCharacters.html +++ b/public/scripts/templates/importCharacters.html @@ -2,7 +2,7 @@

Enter the URL of the content to import

Supported sources:
-