mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
updated missing avatars to be a webfont display
This commit is contained in:
@ -1356,9 +1356,7 @@
|
||||
</div>
|
||||
<div id="rm_group_chats_block" class="right_menu">
|
||||
<div id="rm_group_top_bar">
|
||||
<div id="rm_button_back_from_group" class="menu_button">
|
||||
<div alt="" class="fa-solid fa-left-long "></div>
|
||||
</div>
|
||||
<div id="rm_button_back_from_group" class="menu_button fa-solid fa-left-long"></div>
|
||||
<input id="rm_group_chat_name" class="text_pole" type="text" name="chat_name" placeholder="Chat Name (Optional)" />
|
||||
</div>
|
||||
<div id="rm_group_buttons">
|
||||
|
@ -961,7 +961,9 @@ function addOneMessage(mes, type = "normal", insertAfter = null) {
|
||||
}
|
||||
|
||||
newMessage.find('.avatar img').on('error', function () {
|
||||
$(this).attr("src", "/img/user-slash-solid.svg");
|
||||
/* $(this).attr("src", "/img/user-slash-solid.svg"); */
|
||||
$(this).hide();
|
||||
$(this).parent().html(`<div class="missing-avatar fa-solid fa-user-slash"></div>`);
|
||||
});
|
||||
|
||||
if (type === 'swipe') {
|
||||
|
@ -2377,7 +2377,7 @@ h5 {
|
||||
}
|
||||
|
||||
#rm_button_back_from_group {
|
||||
padding: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#typing_indicator_template {
|
||||
@ -2392,6 +2392,10 @@ h5 {
|
||||
text-shadow: 2px 2px 2px var(--black60a);
|
||||
}
|
||||
|
||||
.missing-avatar {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.typing_indicator:after {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
|
Reference in New Issue
Block a user