diff --git a/public/script.js b/public/script.js index 8a3e47dff..7960d7f6f 100644 --- a/public/script.js +++ b/public/script.js @@ -5586,6 +5586,15 @@ function openCharacterWorldPopup() { const worldId = (menu_type == 'create' ? create_save.world : characters[chid]?.data?.extensions?.world) || ''; template.find('.character_name').text(name); + // Not needed on mobile + if (deviceInfo && deviceInfo.device.type === 'desktop') { + $(extraSelect).select2({ + width: '100%', + placeholder: 'No auxillary Lorebooks set. Click here to select.', + allowClear: true, + closeOnSelect: false, + }); + } // Apped to base dropdown world_names.forEach((item, i) => { @@ -5622,7 +5631,7 @@ function openCharacterWorldPopup() { return; } - let selectScrollTop = null; + /*let selectScrollTop = null; if (deviceInfo && deviceInfo.device.type === 'desktop') { e.preventDefault(); @@ -5632,7 +5641,7 @@ function openCharacterWorldPopup() { option.prop('selected', !option.prop('selected')); await delay(1); selectElement.scrollTop = selectScrollTop; - } + }*/ onExtraWorldInfoChanged(); }); diff --git a/public/style.css b/public/style.css index 375f97722..12b9f6c1a 100644 --- a/public/style.css +++ b/public/style.css @@ -4859,7 +4859,7 @@ body.waifuMode .zoomed_avatar { text-shadow: 0px 0px calc(var(--shadowWidth) * 1px) var(--SmartThemeShadowColor); backdrop-filter: blur(calc(var(--SmartThemeBlurStrength)*2)); color: var(--SmartThemeBodyColor); - z-index: 4000; + z-index: 40000; } .select2-selection__clear {