Skip to content

Commit

Permalink
Merge pull request #69 from TobleroneSwordfish/traitorTag_class
Browse files Browse the repository at this point in the history
Change traitorTag class handling slightly to allow for custom styling
  • Loading branch information
Wirewraith authored Dec 6, 2024
2 parents d176316 + 4466116 commit 84f2c03
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resources/js/Pages/Admin/Logs/Partials/LogEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
color: black;
}
:deep(.traitor-marker) {
:deep(.traitorTag) {
display: inline-block;
border-radius: 3px;
padding: 0 5px;
Expand Down Expand Up @@ -156,9 +156,6 @@ export default {
</span>`
)
const traitorRegex = /\[<span class='traitorTag'>T<\/span>\]/g
message = message.replaceAll(traitorRegex, '<span class="traitor-marker">T</span>')
if (this.searchTerms.length) {
const searchRegex = new RegExp(
this.searchTerms.map((term) => `(${this.escapeRegExp(term)})`).join('|'),
Expand Down

0 comments on commit 84f2c03

Please sign in to comment.