Skip to content

Commit

Permalink
Fix increased visibility overriding highlighting
Browse files Browse the repository at this point in the history
When User A mentions User B and User B tagged User A with a color, User
A's message should be highlighted, even if User B has "increased
visibility of tagged users" enabled.
  • Loading branch information
11k committed Nov 2, 2024
1 parent 01e57fd commit a2396c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions assets/chat/css/messages/modifiers/_highlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@
color: a.$color-chat-text3;
}
}

.pref-taggedvisibility .msg-tagged {
background-color: a.$color-chat-highlight;
}
3 changes: 2 additions & 1 deletion assets/chat/css/messages/modifiers/_tagged.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ $tag-colors: (
}
}

.pref-taggedvisibility .msg-tagged {
// Prioritize highlighted message background color
.pref-taggedvisibility .msg-tagged:not(.msg-highlight) {
background-color: a.$color-chat-tagged;
}

0 comments on commit a2396c2

Please sign in to comment.