half-fix for small boxes in mobile no spoiler view

This commit is contained in:
RossAscends
2023-08-18 22:45:40 +09:00
parent b645746a99
commit 0c5c8c50ad
2 changed files with 33 additions and 29 deletions

View File

@ -208,8 +208,7 @@
<div class="range-block-title justifyLeft"> <div class="range-block-title justifyLeft">
AI Module AI Module
</div> </div>
<div class="toggle-description justifyLeft" <div class="toggle-description justifyLeft" data-i18n="Changes the style of the generated text.">
data-i18n="Changes the style of the generated text.">
Changes the style of the generated text. Changes the style of the generated text.
</div> </div>
<select id="nai_prefix"> <select id="nai_prefix">
@ -1477,8 +1476,7 @@
<div class="fa-solid fa-clock-rotate-left"></div> <div class="fa-solid fa-clock-rotate-left"></div>
</div> </div>
</div> </div>
<div class="toggle-description justifyLeft" <div class="toggle-description justifyLeft" data-i18n="Prompt that is used when the NSFW toggle is O">
data-i18n="Prompt that is used when the NSFW toggle is O">
Prompt that is used when the NSFW toggle is OFF Prompt that is used when the NSFW toggle is OFF
</div> </div>
<div class="wide100p"> <div class="wide100p">
@ -2990,6 +2988,7 @@
<div id="rm_button_selected_ch"> <div id="rm_button_selected_ch">
<h2></h2> <h2></h2>
</div> </div>
<i id="hideCharPanelAvatarButton" class="fa-solid fa-eye menu_button"></i>
</div> </div>
</div> </div>
<!-- end group peeking cope structure--> <!-- end group peeking cope structure-->
@ -3853,7 +3852,7 @@
<textarea id="completion_prompt_manager_popup_entry_form_prompt" class="text_pole" name="prompt"> <textarea id="completion_prompt_manager_popup_entry_form_prompt" class="text_pole" name="prompt">
</textarea> </textarea>
</div> </div>
<div class="completion_prompt_manager_popup_entry_form_footer" > <div class="completion_prompt_manager_popup_entry_form_footer">
<a id="completion_prompt_manager_popup_entry_form_close" title="close" class="fa-solid fa-close menu_button"></a> <a id="completion_prompt_manager_popup_entry_form_close" title="close" class="fa-solid fa-close menu_button"></a>
<a id="completion_prompt_manager_popup_entry_form_reset" title="reset" class="fa-solid fa-undo menu_button"></a> <a id="completion_prompt_manager_popup_entry_form_reset" title="reset" class="fa-solid fa-undo menu_button"></a>
<a id="completion_prompt_manager_popup_entry_form_save" title="save" class="fa-solid fa-save menu_button" data-pm-prompt=""></a> <a id="completion_prompt_manager_popup_entry_form_save" title="save" class="fa-solid fa-save menu_button" data-pm-prompt=""></a>

View File

@ -2900,7 +2900,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
} }
} }
if (true === dryRun) return onSuccess({error: 'dryRun'}); if (true === dryRun) return onSuccess({ error: 'dryRun' });
if (power_user.console_log_prompts) { if (power_user.console_log_prompts) {
@ -4452,7 +4452,7 @@ async function getChat() {
} }
await getChatResult(); await getChatResult();
await saveChat(); await saveChat();
eventSource.emit('chatLoaded', {detail: {id: this_chid, character: characters[this_chid]}}); eventSource.emit('chatLoaded', { detail: { id: this_chid, character: characters[this_chid] } });
setTimeout(function () { setTimeout(function () {
@ -6591,7 +6591,7 @@ async function createOrEditCharacter(e) {
); );
$("#create_button").attr("value", "Save"); $("#create_button").attr("value", "Save");
crop_data = undefined; crop_data = undefined;
eventSource.emit(event_types.CHARACTER_EDITED, {detail: {id: this_chid, character: characters[this_chid]}}); eventSource.emit(event_types.CHARACTER_EDITED, { detail: { id: this_chid, character: characters[this_chid] } });
}, },
error: function (jqXHR, exception) { error: function (jqXHR, exception) {
$("#create_button").removeAttr("disabled"); $("#create_button").removeAttr("disabled");
@ -7643,7 +7643,7 @@ $(document).ready(function () {
if (popup_type == "del_ch") { if (popup_type == "del_ch") {
const deleteChats = !!$("#del_char_checkbox").prop("checked"); const deleteChats = !!$("#del_char_checkbox").prop("checked");
await handleDeleteCharacter(popup_type, this_chid, deleteChats); await handleDeleteCharacter(popup_type, this_chid, deleteChats);
eventSource.emit('characterDeleted', {id: this_chid, character: characters[this_chid]}); eventSource.emit('characterDeleted', { id: this_chid, character: characters[this_chid] });
} }
if (popup_type == "alternate_greeting" && menu_type !== "create") { if (popup_type == "alternate_greeting" && menu_type !== "create") {
createOrEditCharacter(); createOrEditCharacter();
@ -9144,4 +9144,9 @@ $(document).ready(function () {
$("#charListGridToggle").on('click', async () => { $("#charListGridToggle").on('click', async () => {
doCharListDisplaySwitch(); doCharListDisplaySwitch();
}); });
$("#hideCharPanelAvatarButton").on('click', () => {
$('#avatar-and-name-block').slideToggle()
})
}); });