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
|
|
@ -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