1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 10:16:57 +00:00

Basic mod cards support (#423)

* More work on mod cards

* More work on mod cards!

Some sort of dynamic component thingy madoohickey

* Change up implementation of tabs

* Implement focus and tabindex

* Remove unused GQL queries / mutations

* Implement user info

* Only show use rlogin if an international name was detected

Also attempt to fix line height

* Remove testing memes

* Remove derps... whoops
This commit is contained in:
Lordmau5 2018-04-30 20:27:14 +02:00 committed by Mike
parent c548f15290
commit 9ef7c2aee3
10 changed files with 411 additions and 3 deletions

View file

@ -25,6 +25,7 @@ export default class ChatLine extends Module {
this.inject('site');
this.inject('site.fine');
this.inject('site.web_munch');
this.inject('site.apollo');
this.inject(RichContent);
this.inject('chat.actions');
@ -138,7 +139,7 @@ export default class ChatLine extends Module {
e('a', {
className: 'chat-author__display-name notranslate',
style: { color },
onClick: this.usernameClickHandler
onClick: t.parent.mod_cards.openCustomModCard.bind(t.parent.mod_cards, this, user)
}, [
user.userDisplayName,
user.isIntl && e('span', {