mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 06:33:03 -04:00
fix(whoReacted): fix avatar click (#167)
* fix white typing indicators in servers (#166) * Drop DoNotLeak + Extras Co-Authored-By: thororen1234 <thororen1234@users.noreply.github.com> Co-Authored-By: thororen <78185467+thororen1234@users.noreply.github.com> Co-Authored-By: sadan4 <117494111+sadan4@users.noreply.github.com> Co-Authored-By: ynot01 <ynot000001@gmail.com> Co-Authored-By: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com> Co-Authored-By: Crxaw <48805031+sitescript@users.noreply.github.com> * Finish Purge For Merge * fix(whoReacted): fix avatar click (#1) * Update index.tsx * Fixes --------- Co-authored-by: thororen1234 <thororen1234@users.noreply.github.com> Co-authored-by: mochie <mop48duck+cassie@gmail.com> Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com> Co-authored-by: sadan4 <117494111+sadan4@users.noreply.github.com> Co-authored-by: ynot01 <ynot000001@gmail.com> Co-authored-by: MrDiamondDog <84212701+MrDiamondDog@users.noreply.github.com> Co-authored-by: Crxaw <48805031+sitescript@users.noreply.github.com>
This commit is contained in:
parent
d832344adb
commit
c46476ea10
1 changed files with 16 additions and 26 deletions
|
@ -102,7 +102,7 @@ const settings = definePluginSettings({
|
|||
avatarClick: {
|
||||
description: "Toggle clicking avatars in reactions",
|
||||
type: OptionType.BOOLEAN,
|
||||
default: false,
|
||||
default: true,
|
||||
restartNeeded: true
|
||||
}
|
||||
});
|
||||
|
@ -175,31 +175,21 @@ export default definePlugin({
|
|||
<div
|
||||
style={{ marginLeft: "0.5em", transform: "scale(0.9)" }}
|
||||
>
|
||||
{settings.store.avatarClick ? (
|
||||
<div onClick={handleClickAvatar} onKeyPress={handleClickAvatar}>
|
||||
<UserSummaryItem
|
||||
users={users}
|
||||
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
||||
renderIcon={false}
|
||||
max={5}
|
||||
showDefaultAvatarsForNullUsers
|
||||
showUserPopout
|
||||
renderMoreUsers={makeRenderMoreUsers(users)}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
<UserSummaryItem
|
||||
users={users}
|
||||
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
||||
renderIcon={false}
|
||||
max={5}
|
||||
showDefaultAvatarsForNullUsers
|
||||
showUserPopout
|
||||
renderMoreUsers={makeRenderMoreUsers(users)}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
onClick={handleClickAvatar}
|
||||
onKeyDown={handleClickAvatar}
|
||||
style={settings.store.avatarClick ? {} : { pointerEvents: "none" }}
|
||||
>
|
||||
<UserSummaryItem
|
||||
users={users}
|
||||
guildId={ChannelStore.getChannel(message.channel_id)?.guild_id}
|
||||
renderIcon={false}
|
||||
max={5}
|
||||
showDefaultAvatarsForNullUsers
|
||||
showUserPopout
|
||||
renderMoreUsers={makeRenderMoreUsers(users)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue