Add editor expanders to adv.defs Closes #2984

12fbf3df956e2711a9b7bcf4f63707e5adb06abc

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +24 -6Showing whitespace changes
public/index.html+24 -6
@@ -5262,14 +5262,20 @@
52625262 <div class="inline-drawer-content">
52635263 <small data-i18n="Insert {{original}} into either box to include the respective default prompt from system settings.">Insert {{original}} into either box to include the respective default prompt from system settings.</small>
52645264 <div>
52655265 <h4 data-i18nclass="Mainflex-container PromptalignItemsBaseline">Main Prompt</h4>
5266+ <span data-i18n="Main Prompt">Main Prompt</span>
5267+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="system_prompt_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5268+ </h4>
52665269 <textarea id="system_prompt_textarea" name="system_prompt" data-i18n="[placeholder]Any contents here will replace the default Main Prompt used for this character. (v2 spec: system_prompt)" placeholder="Any contents here will replace the default Main Prompt used for this character.&#10;(v2 spec: system_prompt)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>
52675270 <div class="extension_token_counter">
52685271 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="system_prompt_textarea">counting...</span>
52695272 </div>
52705273 </div>
52715274 <div>
52725275 <h4 data-i18nclass="Postflex-Historycontainer InstructionsalignItemsBaseline">Post-History Instructions</h4>
5276+ <span data-i18n="Post-History Instructions">Post-History Instructions</span>
5277+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="post_history_instructions_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5278+ </h4>
52735279 <textarea id="post_history_instructions_textarea" name="post_history_instructions" data-i18n="[placeholder]Any contents here will replace the default Post-History Instructions used for this character. (v2 spec: post_history_instructions)" placeholder="Any contents here will replace the default Post-History Instructions used for this character.&#10;(v2 spec: post_history_instructions)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea>
52745280 <div class="extension_token_counter">
52755281 <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="post_history_instructions_textarea">counting...</span>
@@ -5300,11 +5306,17 @@
53005306 </div>
53015307 <div class="flex-container flexnowrap">
53025308 <div class="flex1">
5303- <h4 class="flex-box" data-i18n="Creator's Notes">Creator's Notes<i class="editor_maximize fa-solid fa-maximize" data-for="creator_notes_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i></h4>
5309+ <h4 class="flex-container alignItemsBaseline">
5310+ <span data-i18n="Creator's Notes">Creator's Notes</span>
5311+ <i class="editor_maximize fa-solid fa-maximize" data-for="creator_notes_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5312+ </h4>
53045313 <textarea id="creator_notes_textarea" name="creator_notes" data-i18n="[placeholder](Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" placeholder="(Describe the bot, give use tips, or list the chat models it has been tested on. This will be displayed in the character list.)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
53055314 </div>
53065315 <div class="flex1">
5307- <h4 data-i18n="Tags to Embed">Tags to Embed</h4>
5316+ <h4 class="flex-container alignItemsBaseline">
5317+ <span data-i18n="Tags to Embed">Tags to Embed</span>
5318+ <i class="editor_maximize fa-solid fa-maximize" data-for="tags_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5319+ </h4>
53085320 <textarea id="tags_textarea" name="tags" data-i18n="[placeholder](Write a comma-separated list of tags)" placeholder="(Write a comma-separated list of tags)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
53095321 </div>
53105322 </div>
@@ -5314,6 +5326,7 @@
53145326 <div id="personality_div">
53155327 <h4 class="flex-container alignItemsBaseline">
53165328 <span data-i18n="Personality summary">Personality summary</span>
5329+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="personality_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
53175330 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#personality-summary" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a>
53185331 </h4>
53195332 <textarea id="personality_textarea" name="personality" data-i18n="[placeholder](A brief description of the personality)" placeholder="(A brief description of the personality)" form="form_create" class="text_pole" autocomplete="off" rows="4"></textarea>
@@ -5324,6 +5337,7 @@
53245337 <div id="scenario_div">
53255338 <h4 class="flex-container alignItemsBaseline">
53265339 <span data-i18n="Scenario">Scenario</span>
5340+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="scenario_pole" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
53275341 <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#scenario" class="notes-link" target="_blank">
53285342 <span class="fa-solid fa-circle-question note-link-span"></span>
53295343 </a>
@@ -5335,10 +5349,11 @@
53355349 </div>
53365350 <div id="depth_prompt_div" class="flex-container">
53375351 <div class="flex1">
5338- <h4>
5352+ <h4 class="flex-container alignItemsBaseline">
53395353 <span data-i18n="Character's Note">
53405354 Character's Note
53415355 </span>
5356+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="depth_prompt_prompt" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
53425357 </h4>
53435358 <textarea id="depth_prompt_prompt" name="depth_prompt_prompt" class="text_pole" rows="5" autocomplete="off" form="form_create" data-i18n="[placeholder](Text to be inserted in-chat @ designated depth and role)" placeholder="(Text to be inserted in-chat @ designated depth and role)"></textarea>
53445359 </div>
@@ -5379,7 +5394,10 @@
53795394 <hr>
53805395 <div id="mes_example_div" class="flex-container flexFlowColumn">
53815396 <div>
5382- <h4 class="flex-container gap5px alignItemsBaseline"><span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span></h4>
5397+ <h4 class="flex-container alignItemsBaseline">
5398+ <span data-i18n="Examples of dialogue" class="mdhotkey_location">Examples of dialogue</span>
5399+ <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="mes_example_textarea" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5400+ </h4>
53835401 <h5 data-i18n="Important to set the character's writing style.">Important to set the character's writing style. <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#examples-of-dialogue" class="notes-link" target="_blank"><span class="fa-solid fa-circle-question note-link-span"></span></a></h5>
53845402 </div>
53855403 <textarea id="mes_example_textarea" class="flexGrow mdHotkeys" name="mes_example" data-i18n="[placeholder](Examples of chat dialog. Begin each example with START on a new line.)" placeholder="(Examples of chat dialog. Begin each example with &lt;START&gt; on a new line.)" form="form_create" rows="6"></textarea>