Skip to content

Commit

Permalink
7TV Emotes 1.4.11
Browse files Browse the repository at this point in the history
* Fixed: Do not apply nametag paints to login names when a user has an internationalized display name. This was causing login names to appear completely invisible due to an incompatibility with opacity and the CSS background-clip rule.
  • Loading branch information
SirStendec committed Nov 26, 2023
1 parent 55d2499 commit a7c5de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/7tv-emotes/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main",
"clips"
],
"version": "1.4.10",
"version": "1.4.11",
"short_name": "7TV",
"name": "7TV Emotes",
"author": "Melonify",
Expand All @@ -14,5 +14,5 @@
"website": "https://7tv.app",
"settings": "add_ons.7tv_emotes",
"created": "2021-07-12T23:18:04.000Z",
"updated": "2023-11-20T21:12:16.578Z"
"updated": "2023-11-26T19:22:38.283Z"
}
6 changes: 3 additions & 3 deletions src/7tv-emotes/modules/nametag-paints.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export default class NametagPaints extends FrankerFaceZ.utilities.module.Module

document.head.appendChild(s);

s.sheet.insertRule(`.seventv-painted-content {
s.sheet.insertRule(`.seventv-painted-content .chat-author__display-name {
background-color: currentcolor;
}`);
s.sheet.insertRule(`.seventv-painted-content[data-seventv-painted-text="true"] {
s.sheet.insertRule(`.seventv-painted-content[data-seventv-painted-text="true"] .chat-author__display-name {
-webkit-text-fill-color: transparent;
background-clip: text !important;
/* stylelint-disable-next-line property-no-vendor-prefix */
Expand Down Expand Up @@ -165,7 +165,7 @@ export default class NametagPaints extends FrankerFaceZ.utilities.module.Module
return paint.shadows.map(v => this.createFilterDropshadow(v)).join(' ');
})();

const selector = `.seventv-paint[data-seventv-paint-id="${paint.id}"]`;
const selector = `.seventv-paint[data-seventv-paint-id="${paint.id}"] .chat-author__display-name`;
const text = `${selector} {
color: ${paint.color ? this.getCSSColorFromInt(paint.color) : 'inherit'};
background-image: ${gradients.map(v => v[0]).join(', ')};
Expand Down

0 comments on commit a7c5de5

Please sign in to comment.