Persona description editor expand (#4591) * Enhance persona description section with expandable editor icon * Fix selector for persona description update to use data attribute

334a5409a0bc0d13f5c809e722edfa44535e181c

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

Signed
2 files changed, +5 -2Ignore whitespace
public/index.html+4 -1
@@ -5511,7 +5511,10 @@
5511 </div>5511 </div>
5512 </div>5512 </div>
55135513
5514 <h4 data-i18n="Persona Description">Persona Description</h4>5514 <h4 class="flex-container alignItemsBaseline">
5515 <span data-i18n="Persona Description">Persona Description</span>
5516 <i class="editor_maximize fa-solid fa-maximize right_menu_button" data-for="persona_description" title="Expand the editor" data-i18n="[title]Expand the editor"></i>
5517 </h4>
5515 <textarea id="persona_description" name="persona_description" data-i18n="[placeholder]Example: [{{user}} is a 28-year-old Romanian cat girl.]" placeholder="Example:&#10;[{{user}} is a 28-year-old Romanian cat girl.]" class="text_pole textarea_compact" value="" autocomplete="off" rows="8"></textarea>5518 <textarea id="persona_description" name="persona_description" data-i18n="[placeholder]Example: [{{user}} is a 28-year-old Romanian cat girl.]" placeholder="Example:&#10;[{{user}} is a 28-year-old Romanian cat girl.]" class="text_pole textarea_compact" value="" autocomplete="off" rows="8"></textarea>
55165519
5517 <div class="flex-container justifySpaceBetween">5520 <div class="flex-container justifySpaceBetween">
public/scripts/personas.js+1 -1
@@ -1131,7 +1131,7 @@ function onPersonaDescriptionInput() {
1131 object.description = power_user.persona_description;1131 object.description = power_user.persona_description;
1132 }1132 }
11331133
1134 $(`.avatar-container[imgfile="${user_avatar}"] .ch_description`)1134 $(`.avatar-container[data-avatar-id="${user_avatar}"] .ch_description`)
1135 .text(power_user.persona_description || $('#user_avatar_block').attr('no_desc_text'))1135 .text(power_user.persona_description || $('#user_avatar_block').attr('no_desc_text'))
1136 .toggleClass('text_muted', !power_user.persona_description);1136 .toggleClass('text_muted', !power_user.persona_description);
1137 saveSettingsDebounced();1137 saveSettingsDebounced();