mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add char version to group panel member names
- Follows the same style as version in char list - Respects the chosen "auxiliary field" setting Closes #3359
This commit is contained in:
@@ -6328,7 +6328,10 @@
|
|||||||
<img alt="Avatar" src="" />
|
<img alt="Avatar" src="" />
|
||||||
</div>
|
</div>
|
||||||
<div class="group_member_name">
|
<div class="group_member_name">
|
||||||
<div class="ch_name"></div>
|
<div class="character_name_block">
|
||||||
|
<span class="ch_name"></span>
|
||||||
|
<small class="ch_additional_info character_version"></small>
|
||||||
|
</div>
|
||||||
<div class="tags tags_inline"></div>
|
<div class="tags tags_inline"></div>
|
||||||
</div>
|
</div>
|
||||||
<input class="ch_fav" value="" hidden />
|
<input class="ch_fav" value="" hidden />
|
||||||
|
@@ -1368,6 +1368,15 @@ function getGroupCharacterBlock(character) {
|
|||||||
template.find('.ch_fav').val(isFav);
|
template.find('.ch_fav').val(isFav);
|
||||||
template.toggleClass('is_fav', isFav);
|
template.toggleClass('is_fav', isFav);
|
||||||
|
|
||||||
|
const auxFieldName = power_user.aux_field || 'character_version';
|
||||||
|
const auxFieldValue = (character.data && character.data[auxFieldName]) || '';
|
||||||
|
if (auxFieldValue) {
|
||||||
|
template.find('.character_version').text(auxFieldValue);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
template.find('.character_version').hide();
|
||||||
|
}
|
||||||
|
|
||||||
let queuePosition = groupChatQueueOrder.get(character.avatar);
|
let queuePosition = groupChatQueueOrder.get(character.avatar);
|
||||||
if (queuePosition) {
|
if (queuePosition) {
|
||||||
template.find('.queue_position').text(queuePosition);
|
template.find('.queue_position').text(queuePosition);
|
||||||
|
@@ -2921,7 +2921,7 @@ input[type=search]:focus::-webkit-search-cancel-button {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#rm_print_characters_block .ch_name,
|
.character_name_block .ch_name,
|
||||||
.avatar-container .ch_name {
|
.avatar-container .ch_name {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
Reference in New Issue
Block a user