From 065dffa8a420d788ab9f4a9a01a16e07ad1ab125 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 20 Aug 2023 19:47:14 +0300 Subject: [PATCH] Use CSS for fav group candidate coloring --- public/scripts/group-chats.js | 2 +- public/style.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 353c4a7bd..3884b85a2 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -1040,7 +1040,7 @@ function getGroupCharacterBlock(character) { const isFav = character.fav || character.fav == 'true'; template.data("id", 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.find('.ch_fav').val(isFav); template.toggleClass('is_fav', isFav); diff --git a/public/style.css b/public/style.css index 123959c98..2a95e58a2 100644 --- a/public/style.css +++ b/public/style.css @@ -1573,7 +1573,8 @@ input[type=search]:focus::-webkit-search-cancel-button { } .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); }