Add editor expanders to adv.defs Closes #2984
| @@ -5262,14 +5262,20 @@ | ||
| 5262 | 5262 | <div class="inline-drawer-content"> |
| 5263 | 5263 | <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> |
| 5264 | 5264 | <div> |
| 5265 | 5265 | <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> | |
| 5266 | 5269 | <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. (v2 spec: system_prompt)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea> |
| 5267 | 5270 | <div class="extension_token_counter"> |
| 5268 | 5271 | <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="system_prompt_textarea">counting...</span> |
| 5269 | 5272 | </div> |
| 5270 | 5273 | </div> |
| 5271 | 5274 | <div> |
| 5272 | 5275 | <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> | |
| 5273 | 5279 | <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. (v2 spec: post_history_instructions)" form="form_create" class="text_pole" autocomplete="off" rows="3"></textarea> |
| 5274 | 5280 | <div class="extension_token_counter"> |
| 5275 | 5281 | <span data-i18n="extension_token_counter">Tokens:</span> <span data-token-counter="post_history_instructions_textarea">counting...</span> |
| @@ -5300,11 +5306,17 @@ | ||
| 5300 | 5306 | </div> |
| 5301 | 5307 | <div class="flex-container flexnowrap"> |
| 5302 | 5308 | <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> | |
| 5304 | 5313 | <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> |
| 5305 | 5314 | </div> |
| 5306 | 5315 | <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> | |
| 5308 | 5320 | <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> |
| 5309 | 5321 | </div> |
| 5310 | 5322 | </div> |
| @@ -5314,6 +5326,7 @@ | ||
| 5314 | 5326 | <div id="personality_div"> |
| 5315 | 5327 | <h4 class="flex-container alignItemsBaseline"> |
| 5316 | 5328 | <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> | |
| 5317 | 5330 | <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> |
| 5318 | 5331 | </h4> |
| 5319 | 5332 | <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 @@ | ||
| 5324 | 5337 | <div id="scenario_div"> |
| 5325 | 5338 | <h4 class="flex-container alignItemsBaseline"> |
| 5326 | 5339 | <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> | |
| 5327 | 5341 | <a href="https://docs.sillytavern.app/usage/core-concepts/characterdesign/#scenario" class="notes-link" target="_blank"> |
| 5328 | 5342 | <span class="fa-solid fa-circle-question note-link-span"></span> |
| 5329 | 5343 | </a> |
| @@ -5335,10 +5349,11 @@ | ||
| 5335 | 5349 | </div> |
| 5336 | 5350 | <div id="depth_prompt_div" class="flex-container"> |
| 5337 | 5351 | <div class="flex1"> |
| 5338 | - <h4> | |
| 5352 | + <h4 class="flex-container alignItemsBaseline"> | |
| 5339 | 5353 | <span data-i18n="Character's Note"> |
| 5340 | 5354 | Character's Note |
| 5341 | 5355 | </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> | |
| 5342 | 5357 | </h4> |
| 5343 | 5358 | <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> |
| 5344 | 5359 | </div> |
| @@ -5379,7 +5394,10 @@ | ||
| 5379 | 5394 | <hr> |
| 5380 | 5395 | <div id="mes_example_div" class="flex-container flexFlowColumn"> |
| 5381 | 5396 | <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> | |
| 5383 | 5401 | <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> |
| 5384 | 5402 | </div> |
| 5385 | 5403 | <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 <START> on a new line.)" form="form_create" rows="6"></textarea> |