Fix i18n, make dialog wide

This commit is contained in:
Cohee 2024-06-03 01:49:01 +03:00
parent e93bc49b36
commit 91061c1d55
2 changed files with 13 additions and 3 deletions

View File

@ -10539,7 +10539,7 @@ jQuery(async function () {
const html = await renderTemplateAsync('importCharacters');
/** @type {string?} */
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 });
const input = await callGenericPopup(html, POPUP_TYPE.INPUT, '', { wide: true, okButton: $('#shadow_popup_template').attr('popup_text_import'), rows: 4 });
if (!input) {
console.debug('Custom content import cancelled');
@ -10550,7 +10550,7 @@ jQuery(async function () {
const inputs = input.split('\n').map(x => x.trim()).filter(x => x.length > 0);
for (const url of inputs) {
var request;
let request;
if (isValidUrl(url)) {
console.debug('Custom content import started for URL: ', url);

View File

@ -12,4 +12,14 @@
<li><span data-i18n="char_import_8">RisuRealm Character (Direct Link)</span><br><span data-i18n="char_import_example">Example:</span> <tt>https://realm.risuai.net/character/3ca54c71-6efe-46a2-b9d0-4f62df23d712</tt></li>
</ul>
</div>
<small data-i18n="Supports importing multiple characters. Write each URL or ID into a new line. (<code>Shift</code> + <code>Enter</code> to start a new line)">Supports importing multiple characters. Write each URL or ID into a new line. (<code>Shift</code> + <code>Enter</code> to start a new line)</small>
<small>
<span data-i18n="Supports importing multiple characters.">
Supports importing multiple characters.
</span>
<span data-i18n="Write each URL or ID into a new line.">
Write each URL or ID into a new line.
</span>
<span data-i18n="(Shift + Enter to start a new line)">
(Shift + Enter to start a new line)
</span>
</small>