feat(extra-info): adapt chips styles to the RCE thread page
The RCE thread page includes a different style of chip compared to the
old thread page.
Fixed: twpowertools:173
Change-Id: I59368cf09be778a4ad7f5d2aefdf5177cb370f11
diff --git a/src/contentScripts/communityConsole/extraInfo/injections/base.js b/src/contentScripts/communityConsole/extraInfo/injections/base.js
index ee997c4..78ded47 100644
--- a/src/contentScripts/communityConsole/extraInfo/injections/base.js
+++ b/src/contentScripts/communityConsole/extraInfo/injections/base.js
@@ -84,23 +84,15 @@
* instantiated.
*/
addChipToContainer(chipContent, container) {
- let chip = document.createElement('material-chip');
+ let chip = document.createElement('div');
chip.classList.add('TWPT-extrainfo-chip');
- let chipContentContainer = document.createElement('div');
- chipContentContainer.classList.add('TWPT-chip-content-container');
-
- let content = document.createElement('div');
- content.classList.add('TWPT-content');
-
const [badge, badgeTooltip] = createExtBadge();
let span = document.createElement('span');
span.append(chipContent);
- content.append(badge, span);
- chipContentContainer.append(content);
- chip.append(chipContentContainer);
+ chip.append(badge, span);
container.append(chip);
return badgeTooltip;