Fixed visual bugs with 'The Network' theme.

This commit is contained in:
rainbow napkin 2026-10-15 00:05:42 -04:00
parent 2af9557456
commit a0f680c02a
2 changed files with 16 additions and 8 deletions

View file

@ -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');