Use CSS for fav group candidate coloring

This commit is contained in:
Cohee 2023-08-20 19:47:14 +03:00
parent d02fa88d3a
commit 065dffa8a4
2 changed files with 3 additions and 2 deletions

View File

@ -1040,7 +1040,7 @@ function getGroupCharacterBlock(character) {
const isFav = character.fav || character.fav == 'true'; const isFav = character.fav || character.fav == 'true';
template.data("id", character.avatar); template.data("id", character.avatar);
template.find(".avatar img").attr({ "src": avatar, "title": character.avatar }); template.find(".avatar img").attr({ "src": avatar, "title": character.avatar });
template.find(".ch_name").text(character.name).css('color', character.fav ? 'gold' : 'white'); template.find(".ch_name").text(character.name);
template.attr("chid", characters.indexOf(character)); template.attr("chid", characters.indexOf(character));
template.find('.ch_fav').val(isFav); template.find('.ch_fav').val(isFav);
template.toggleClass('is_fav', isFav); template.toggleClass('is_fav', isFav);

View File

@ -1573,7 +1573,8 @@ input[type=search]:focus::-webkit-search-cancel-button {
} }
.character_select.is_fav .ch_name, .character_select.is_fav .ch_name,
.group_select.is_fav .ch_name { .group_select.is_fav .ch_name,
.group_member.is_fav .ch_name {
color: var(--golden); color: var(--golden);
} }