Fixed visual bugs with 'The Network' theme.
This commit is contained in:
parent
2af9557456
commit
a0f680c02a
2 changed files with 16 additions and 8 deletions
|
|
@ -445,17 +445,21 @@ p.channel-guide-entry-item{
|
|||
box-shadow: var(--focus-glow0-alt0-inset-top);
|
||||
}
|
||||
|
||||
.serverwhisper, .chat-entry-toke{
|
||||
background-color: var(--bg1);
|
||||
margin: 0;
|
||||
padding: 0.2em 0;
|
||||
.chat-entry-tokewhisper, .chat-entry-serverwhisper{
|
||||
background-color: var(--bg2-alt1);
|
||||
}
|
||||
|
||||
.chat-entry:nth-child(even):not(.chat-entry-toke){
|
||||
.serverwhisper, .chat-entry-toke{
|
||||
background-color: var(--bg2-alt1);
|
||||
margin: 0;
|
||||
padding: 0.2em 0.1em;
|
||||
}
|
||||
|
||||
.chat-entry:nth-child(even):not(.chat-entry-toke, .chat-entry-serverwhisper, .chat-entry-tokewhisper){
|
||||
background-color: var(--bg0);
|
||||
}
|
||||
|
||||
.chat-entry:nth-child(odd):not(.chat-entry-toke){
|
||||
.chat-entry:nth-child(odd):not(.chat-entry-toke, .chat-entry-serverwhisper, .chat-entry-tokewhisper){
|
||||
background-color: var(--bg1-alt0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -664,9 +664,13 @@ class chatPostprocessor{
|
|||
//add whisper class
|
||||
this.chatBody.classList.add('whisper');
|
||||
}else if(this.rawData.type == "announcement"){
|
||||
//Squash the high-level & timestamp
|
||||
//Squash the high-level
|
||||
this.chatEntry.querySelector('.high-level').remove();
|
||||
this.chatEntry.querySelector('.chat-entry-timestamp').remove();
|
||||
//If the user is displaying timestamps
|
||||
if(localStorage.getItem('nameplateFormat') == "timestamp"){
|
||||
//Remove the timestamp from the chat entry
|
||||
this.chatEntry.querySelector('.chat-entry-timestamp').remove();
|
||||
}
|
||||
|
||||
//Get the username and make it into an announcement title (little hacky but this *IS* postprocessing)
|
||||
const userNode = this.chatEntry.querySelector('.chat-entry-username');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue